Index: branches/unlabeled/unlabeled-1.27.2/kernel/admin_templates/incs/catalog.js =================================================================== diff -u -r5716 -r5741 --- branches/unlabeled/unlabeled-1.27.2/kernel/admin_templates/incs/catalog.js (.../catalog.js) (revision 5716) +++ branches/unlabeled/unlabeled-1.27.2/kernel/admin_templates/incs/catalog.js (.../catalog.js) (revision 5741) @@ -248,9 +248,7 @@ Catalog.prototype.queryTabRegistry = function($search_key, $search_value, $return_key) { if ($search_key == 'prefix' && $search_value != null) { // remove special here (lists with specials, but tabs have no special) - if ($search_value.indexOf('.') != -1) { - $search_value = $search_value.substring(0, $search_value.indexOf('.')); - } + $search_value = this.cutSpecial($search_value); } var $i = 0; @@ -282,8 +280,16 @@ } } +Catalog.prototype.cutSpecial = function($prefix_special) { + var $prefix = $prefix_special; + if ($prefix.indexOf('.') != -1) { + $prefix = $prefix.substring(0, $prefix.indexOf('.')); + } + return $prefix; +} + Catalog.prototype.setItemCount = function($prefix, $count) { - setInnerHTML($prefix + '_item_count', $count); + setInnerHTML(this.cutSpecial($prefix) + '_item_count', $count); } Catalog.prototype.getCurrentPrefix = function() {