MINOR: fix the bug that ModelAdmin search filter doesn't work when arriving from another section of the CMS.

This commit is contained in:
Normann Lou 2012-03-13 16:29:34 +13:00 committed by Ingo Schommer
parent 4bf4d4de8f
commit 4c1cb59116

View File

@ -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);