From 3fa6cd3da71f69a614a8609e51679c3ae7fea25b Mon Sep 17 00:00:00 2001 From: secretr Date: Tue, 27 Jan 2009 14:58:51 +0000 Subject: [PATCH] JS API ajax request bugfix --- e107_files/jslib/e107.js.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/e107_files/jslib/e107.js.php b/e107_files/jslib/e107.js.php index 51f8faa62..da4e32ee4 100644 --- a/e107_files/jslib/e107.js.php +++ b/e107_files/jslib/e107.js.php @@ -8,8 +8,8 @@ * e107 Javascript API * * $Source: /cvs_backup/e107_0.8/e107_files/jslib/e107.js.php,v $ - * $Revision: 1.27 $ - * $Date: 2009-01-26 14:26:01 $ + * $Revision: 1.28 $ + * $Date: 2009-01-27 14:58:51 $ * $Author: secretr $ * */ @@ -2378,8 +2378,10 @@ e107Ajax.Request = Class.create({ this.options = {}; Object.extend(this.options, options || {}); - if(!this.options['parameters'] || !this.options.parameters['ajax_used']) - Object.extend(this.options['parameters'], { 'ajax_used': 1 }); + if(!this.options['parameters']) + this.options['parameters'] = { 'ajax_used': 1 } + else if(!this.options.parameters['ajax_used']) + this.options['parameters']['ajax_used'] = 1; // only if required if(this.options.history) {