Index: trunk/core/admin_templates/js/catalog.js =================================================================== diff -u -N -r6583 -r6669 --- trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 6583) +++ trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 6669) @@ -150,7 +150,7 @@ this.resetTabs(false); // query sub categories of $cat_id - var $url = this.URLMask.replace('#TEMPLATE_NAME#', 'xml/categories_list').replace('#CATEGORY_ID#', $cat_id); + var $url = this.URLMask.replace('#TEMPLATE_NAME#', 'in-portal/xml/categories_list').replace('#CATEGORY_ID#', $cat_id); var $prefix = this.TabRegistry[0]['prefix']; var $tab_id = this.TabRegistry[0]['tab_id']; @@ -234,7 +234,7 @@ this.TabRegistry[$index]['tab_id'] = $tab_id; this.TabRegistry[$index]['prefix'] = $tab.getAttribute('prefix'); if ($tab_id == 'categories') { - this.TabRegistry[$index]['module_path'] = ''; + this.TabRegistry[$index]['module_path'] = 'in-portal/'; } else { this.TabRegistry[$index]['module_path'] = $tab.getAttribute('edit_template').substring(0, $tab.getAttribute('edit_template').indexOf('/')); @@ -248,8 +248,10 @@ // allows to get any information about tab Catalog.prototype.queryTabRegistry = function($search_key, $search_value, $return_key) { var $i = 0; +// alert('looking in '+$search_key+' for '+$search_value+' will return '+$return_key) while ($i < this.TabRegistry.length) { if (this.TabRegistry[$i][$search_key] == $search_value) { +// alert('got '+this.TabRegistry[$i][$return_key]) return this.TabRegistry[$i][$return_key]; break; }