ENHANCEMENT Auto-hiding tab bar in CMS forms if only a single tab is available (to save screen space and reduce UI clutter) (see #7261)

This commit is contained in:
Ingo Schommer 2012-05-09 17:19:20 +02:00
parent 8c9560d288
commit 11f4756225

View File

@ -193,6 +193,17 @@
}
});
/**
* Hide tabs when only one is available
*/
$('.cms-edit-form .ss-tabset').entwine({
onmatch: function() {
var tabs = this.find("ul:first").children('li');
if(tabs.length == 1) this.find('ul:first').hide();
this._super();
}
});
});
}(jQuery));