Index: trunk/core/admin_templates/js/catalog.js =================================================================== diff -u -r5296 -r5322 --- trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 5296) +++ trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 5322) @@ -43,14 +43,22 @@ } Catalog.prototype.submit_kernel_form = function($tab_id) { - var $prefix = this.queryTabRegistry('tab_id', $tab_id, 'prefix'); + var $prefix = 'dummy'; + var $result_div = ''; + + if (isset($tab_id)) { + // responce result + progress are required + $prefix = this.queryTabRegistry('tab_id', $tab_id, 'prefix'); + $result_div = $tab_id + '_div'; + } + var $kf = document.getElementById($form_name); Request.params = Request.serializeForm($kf); 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', this); + Request.makeRequest($kf.action, this.BusyRequest[$prefix], $result_div, this.successCallback, this.errorCallback, $result_div, this); $form_name = 'kernel_form'; // restore back to main form with current category id of catalog }; @@ -62,17 +70,19 @@ window.location.href = RegExp.$1; return false; } - + $params = $params.split(','); - var $js_end = $text.indexOf($object.Separator); - if ($js_end != -1) { - document.getElementById($params[0]).innerHTML = $text.substring($js_end + $object.Separator.length); - eval($text.substring(0, $js_end)); + if ($params[0].length) { + var $js_end = $text.indexOf($object.Separator); + if ($js_end != -1) { + document.getElementById($params[0]).innerHTML = $text.substring($js_end + $object.Separator.length); + eval($text.substring(0, $js_end)); + } + else { + document.getElementById($params[0]).innerHTML = $text; + } } - else { - document.getElementById($params[0]).innerHTML = $text; - } - + if (typeof($Debugger) != 'undefined') { $Debugger.Clear(); }