1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-26 09:20:28 +02:00

JS API ajax request bugfix

This commit is contained in:
secretr
2009-01-27 14:58:51 +00:00
parent c9b20b0cb5
commit 3fa6cd3da7

View File

@@ -8,8 +8,8 @@
* e107 Javascript API * e107 Javascript API
* *
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/e107.js.php,v $ * $Source: /cvs_backup/e107_0.8/e107_files/jslib/e107.js.php,v $
* $Revision: 1.27 $ * $Revision: 1.28 $
* $Date: 2009-01-26 14:26:01 $ * $Date: 2009-01-27 14:58:51 $
* $Author: secretr $ * $Author: secretr $
* *
*/ */
@@ -2378,8 +2378,10 @@ e107Ajax.Request = Class.create({
this.options = {}; this.options = {};
Object.extend(this.options, options || {}); Object.extend(this.options, options || {});
if(!this.options['parameters'] || !this.options.parameters['ajax_used']) if(!this.options['parameters'])
Object.extend(this.options['parameters'], { 'ajax_used': 1 }); this.options['parameters'] = { 'ajax_used': 1 }
else if(!this.options.parameters['ajax_used'])
this.options['parameters']['ajax_used'] = 1;
// only if required // only if required
if(this.options.history) { if(this.options.history) {