Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: fix the bug that ModelAdmin search filter doesn't work when ar…

…riving from another section of the CMS.
  • Loading branch information...
commit 4c1cb591162e4ce30530323fd140488b56e8de24 1 parent 4bf4d4d
@normann normann authored chillu committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 admin/javascript/ModelAdmin.js
View
8 admin/javascript/ModelAdmin.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.