MINOR Avoid reinitialising tabs (see #7258)

This commit is contained in:
Ingo Schommer 2012-06-14 17:17:48 +02:00
parent fa900f70d5
commit 5260738148

View File

@ -803,7 +803,7 @@ jQuery.noConflict();
// Fix for wrong cookie storage of deselected tabs
if($.cookie && id && $.cookie(cookieId) == -1) $.cookie(cookieId, 0);
this.tabs({
if(!this.data('tabs')) this.tabs({
cookie: ($.cookie && id) ? { expires: 30, path: '/', name: cookieId } : false,
ajaxOptions: {
// Overwrite ajax loading to use CMS logic instead