mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1949 from mateusz/tabs-refresh
BUG All tabs are in open state when changing the name of a folder.
This commit is contained in:
commit
0c6f32e752
@ -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…
Reference in New Issue
Block a user