mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
3878806ca3
commit
b480886cab
@ -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]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user