mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: fix the bug that ModelAdmin search filter doesn't work when arriving from another section of the CMS.
This commit is contained in:
parent
4bf4d4de8f
commit
4c1cb59116
@ -4,6 +4,13 @@
|
||||
|
||||
(function($) {
|
||||
$.entwine('ss', function($){
|
||||
$('#cms-content-tools #Form_SearchForm').entwine({
|
||||
onsubmit: function(e) {
|
||||
//We need to trigger handleStateChange() explicitly, otherwise handleStageChange()
|
||||
//doesn't called if landing from another section of cms
|
||||
this.trigger('beforeSubmit');
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Class: .importSpec
|
||||
@ -21,6 +28,5 @@
|
||||
this._super();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
})(jQuery);
|
Loading…
Reference in New Issue
Block a user