From ef9409294c4cb72c96b2168e1ad5c157d77743eb Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 11 Jul 2014 16:49:45 +0000 Subject: [PATCH] Try to use xmlDoc.responseText as xmlDoc.response might not be available in IE --- etemplate/js/et2_widget_tree.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index f48cea78d0..ff039356c9 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -193,7 +193,9 @@ var et2_tree = et2_inputWidget.extend( widget.setImages.apply(widget, widget.options.std_images.split(',')); } // Add in the callback so we can keep the two in sync - widget.input.AJAX_callback = function() { widget._dhtmlxtree_json_callback(JSON.parse(this.response), widget.input.lastLoadedXMLId);}; + widget.input.AJAX_callback = function(dxmlObject) { + widget._dhtmlxtree_json_callback(JSON.parse(dxmlObject.xmlDoc.responseText), widget.input.lastLoadedXMLId); + }; if (widget.options.autoloading) { @@ -538,7 +540,7 @@ var et2_tree = et2_inputWidget.extend( else { this.input.loadJSON(this.egw().link(this.autoloading_url, {id: _id}), - function() { self._dhtmlxtree_json_callback(JSON.parse(this.response), _id);} + function(dxmlObject) {self._dhtmlxtree_json_callback(JSON.parse(dxmlObject.xmlDoc.responseText), _id);} ); } },