Index: trunk/kernel/admin_templates/incs/catalog.js =================================================================== diff -u -r5057 -r5063 --- trunk/kernel/admin_templates/incs/catalog.js (.../catalog.js) (revision 5057) +++ trunk/kernel/admin_templates/incs/catalog.js (.../catalog.js) (revision 5063) @@ -50,12 +50,12 @@ Request.method = $kf.method.toUpperCase(); this.BusyRequest[$prefix] = false; - Request.makeRequest($kf.action, this.BusyRequest[$prefix], $tab_id + '_div', this.successCallback, this.errorCallback, $tab_id + '_div'); + Request.makeRequest($kf.action, this.BusyRequest[$prefix], $tab_id + '_div', this.successCallback, this.errorCallback, $tab_id + '_div', this); $form_name = 'kernel_form'; // restore back to main form with current category id of catalog }; -Catalog.prototype.successCallback = function($request, $params) { +Catalog.prototype.successCallback = function($request, $params, $object) { var $text = $request.responseText; if ($text.match(/^#redirect#(.*)/)) { // redirect to external template requested @@ -64,9 +64,9 @@ } $params = $params.split(','); - var $js_end = $text.indexOf($Catalog.Separator); + var $js_end = $text.indexOf($object.Separator); if ($js_end != -1) { - document.getElementById($params[0]).innerHTML = $text.substring($js_end + $Catalog.Separator.length); + document.getElementById($params[0]).innerHTML = $text.substring($js_end + $object.Separator.length); eval($text.substring(0, $js_end)); } else { @@ -76,7 +76,7 @@ if (isset($Debugger)) $Debugger.Clear(); } -Catalog.prototype.errorCallback = function($request, $params) { +Catalog.prototype.errorCallback = function($request, $params, $object) { alert('AJAX ERROR: ' + Request.getErrorHtml($request)); } @@ -122,7 +122,7 @@ var $prefix = this.TabRegistry[0]['prefix']; var $tab_id = this.TabRegistry[0]['tab_id']; this.BusyRequest[$prefix] = false; - Request.makeRequest($url, this.BusyRequest[$prefix], $tab_id + '_div', this.successCallback, this.errorCallback, $tab_id + '_div'); + Request.makeRequest($url, this.BusyRequest[$prefix], $tab_id + '_div', this.successCallback, this.errorCallback, $tab_id + '_div', this); this.switchTab(); // refresh current item tab } @@ -160,7 +160,7 @@ $url = $url.replace('#CATEGORY_ID#', $cat_id); this.BusyRequest[$prefix] = false; - Request.makeRequest($url, this.BusyRequest[$prefix], $div_id, this.successCallback, this.errorCallback, $div_id); + Request.makeRequest($url, this.BusyRequest[$prefix], $div_id, this.successCallback, this.errorCallback, $div_id, this); // $Debugger.ShowProps(this.BusyRequest); } /*else {