Commit 0e9c2890 by Antonio Ramirez

remove previous attachments if any

parent f1bf8594
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
gridData[$e.prop('id')] = {settings: settings}; gridData[$e.prop('id')] = {settings: settings};
var enterPressed = false; var enterPressed = false;
$(document).on('change.yiiGridView keydown.yiiGridView', settings.filterSelector, function (event) { $(document).off('change.yiiGridView keydown.yiiGridView', settings.filterSelector)
.on('change.yiiGridView keydown.yiiGridView', settings.filterSelector, function (event) {
if (event.type === 'keydown') { if (event.type === 'keydown') {
if (event.keyCode !== 13) { if (event.keyCode !== 13) {
return; // only react to enter key return; // only react to enter key
......
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