Index: branches/5.0.x/core/admin_templates/js/catalog.js =================================================================== diff -u -r12382 -r12522 --- branches/5.0.x/core/admin_templates/js/catalog.js (.../catalog.js) (revision 12382) +++ branches/5.0.x/core/admin_templates/js/catalog.js (.../catalog.js) (revision 12522) @@ -24,14 +24,18 @@ this.searchInfo = {}; // information about search (for each tab) } -Catalog.prototype.Init = function () { +Catalog.prototype.Init = function ($auto_hide_tabs) { var $prefix = this.queryTabRegistry('prefix', this.ActivePrefix, 'prefix'); if ($prefix !== this.ActivePrefix && this.TabRegistry.length > 0) { // ActivePrefix not set or has non-existing prefix value this.ActivePrefix = this.TabRegistry[0]['prefix']; } - if (this.TabRegistry.length == 1) { + if ($auto_hide_tabs === undefined) { + $auto_hide_tabs = true; + } + + if ((this.TabRegistry.length == 1) && $auto_hide_tabs) { // only one tab -> hide all tab bar $('div.tab-viewport').parents('table:first').hide(); }