Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #882 from Nicola1971/develop
Browse files Browse the repository at this point in the history
ElementsinTree Plugin - Prevent Users from submitting filter elements
  • Loading branch information
Dmi3yy authored Oct 31, 2016
2 parents 7a1f08c + b5f60f2 commit 3247a65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install/assets/plugins/ElementsInTree.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ if ($e->name == 'OnManagerTreePrerender') {
});
}
});
jQuery(".filterElements-form").keydown(function (e) {
if (e.keyCode == 13) {
e.preventDefault();
}
});
}
var storageKey = "MODX_elementsInTreeParams";
Expand Down

0 comments on commit 3247a65

Please sign in to comment.