aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-12 00:31:16 +0000
committermistic100 <mistic@piwigo.org>2014-01-12 00:31:16 +0000
commit95dd3b88ec243c12dd3aa91cf09dbfc6b58694ec (patch)
tree2c17bfa197b05efa2b06a44a76d53647694d3bd1 /admin/themes/default/template
parenta3a23a0ee738ad0de84611946684b9b9b062e91c (diff)
prevent "Enter" on tags filter input to reload the page
git-svn-id: http://piwigo.org/svn/trunk@26646 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template')
-rw-r--r--admin/themes/default/template/tags.tpl6
1 files changed, 5 insertions, 1 deletions
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)}
<div><label><span class="icon-filter" style="visibility:hidden" id="filterIcon"></span>{'Search'|@translate}: <input id="searchInput" type="text" size="12"></label></div>
{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}