From b480886cabe410bad05f3db9ea0fa17f822f4f9c Mon Sep 17 00:00:00 2001 From: Mateusz Uzdowski Date: Thu, 16 May 2013 11:12:53 +1200 Subject: [PATCH] BUG All tabs are in open state when changing the name of a folder. Submitting the form via AJAX changes the DOM controlled by the tabs widget, it needs to be notified about the change. --- admin/javascript/LeftAndMain.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 92cfaf81c..cf2081271 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -643,6 +643,10 @@ jQuery.noConflict(); if(!tabset.data('tabs')) return; // don't act on uninit'ed controls + // The tabs may have changed, notify the widget that it should update its internal state. + tabset.tabs('refresh'); + + // Make sure the intended tab is selected. if(forcedTab.length) { index = forcedTab.index(); } else if(overrideStates && overrideStates[tabsetId]) {