From 95dd3b88ec243c12dd3aa91cf09dbfc6b58694ec Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 12 Jan 2014 00:31:16 +0000 Subject: prevent "Enter" on tags filter input to reload the page git-svn-id: http://piwigo.org/svn/trunk@26646 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/tags.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/tags.tpl b/admin/themes/default/template/tags.tpl index 09d000c86..9ca054f14 100644 --- a/admin/themes/default/template/tags.tpl +++ b/admin/themes/default/template/tags.tpl @@ -119,7 +119,7 @@ jQuery('.showInfo').tipTip({ {if count($all_tags)}
{footer_script}{literal} -$("#searchInput").on( "keydown", function() { +$("#searchInput").on( "keydown", function(e) { var $this = $(this), timer = $this.data("timer"); if (timer) @@ -145,6 +145,10 @@ $("#searchInput").on( "keydown", function() { } }, 300) ); + + if (e.keyCode == 13) { // Enter + e.preventDefault(); + } }); {/literal}{/footer_script} {/if} -- cgit v1.2.3