mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: SSF-33 always selecting the first tab (list view) when doing a search
This commit is contained in:
parent
3223404a3f
commit
ebf23abbbf
@ -415,7 +415,10 @@ jQuery.noConflict();
|
||||
});
|
||||
var url = this.attr('action');
|
||||
if(nonEmptyInputs.length) url += '?' + nonEmptyInputs.serialize();
|
||||
this.closest('.cms-container').entwine('ss').loadPanel(url);
|
||||
|
||||
var container = this.closest('.cms-container');
|
||||
container.find('.cms-edit-form').tabs('select',0); //always switch to the first tab (list view) when searching
|
||||
container .entwine('ss').loadPanel(url);
|
||||
return false;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user