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.
This commit is contained in:
Mateusz Uzdowski 2013-05-16 11:12:53 +12:00
parent 3878806ca3
commit b480886cab

View File

@ -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]) {