Commit db99b5fd by Kartik Visweswaran Committed by Qiang Xue

Code cleanup - beforeFilter and afterFilter events

parent 2c64ee0f
...@@ -104,7 +104,6 @@ ...@@ -104,7 +104,6 @@
$form.append($('<input type="hidden" name="t" value="" />').attr('name', name).val(value)); $form.append($('<input type="hidden" name="t" value="" />').attr('name', name).val(value));
}); });
// triggers `beforeFilter` grid event with the filter form as a parameter
event = $.Event(gridEvents.beforeFilter); event = $.Event(gridEvents.beforeFilter);
$grid.trigger(event); $grid.trigger(event);
if (event.result === false) { if (event.result === false) {
...@@ -113,7 +112,6 @@ ...@@ -113,7 +112,6 @@
$form.submit(); $form.submit();
// triggers `afterFilter` grid event with the filter form as a parameter
$grid.trigger(gridEvents.afterFilter); $grid.trigger(gridEvents.afterFilter);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment