From 9fa6f86c0d6958f6080fee61112d52d9de05d4b1 Mon Sep 17 00:00:00 2001 From: Deesen Date: Mon, 31 Oct 2016 15:56:38 +0100 Subject: [PATCH] Prevent Users from submitting filtered elements - https://github.com/modxcms/evolution/pull/882 --- install/assets/plugins/ElementsInTree.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/assets/plugins/ElementsInTree.tpl b/install/assets/plugins/ElementsInTree.tpl index fd08860..4c75d44 100644 --- a/install/assets/plugins/ElementsInTree.tpl +++ b/install/assets/plugins/ElementsInTree.tpl @@ -390,6 +390,10 @@ if ($e->name == 'OnManagerTreePrerender') { } jQuery(document).ready(function() { + + jQuery(".filterElements-form").keydown(function (e) { + if(e.keyCode == 13) e.preventDefault(); + }); '.$treeButtonsInTab_js.'