Changeset 26646


Ignore:
Timestamp:
Jan 12, 2014, 1:31:16 AM (7 years ago)
Author:
mistic100
Message:

prevent "Enter" on tags filter input to reload the page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/tags.tpl

    r23476 r26646  
    120120<div><label><span class="icon-filter" style="visibility:hidden" id="filterIcon"></span>{'Search'|@translate}: <input id="searchInput" type="text" size="12"></label></div>
    121121{footer_script}{literal}
    122 $("#searchInput").on( "keydown", function() {
     122$("#searchInput").on( "keydown", function(e) {
    123123        var $this = $(this),
    124124                timer = $this.data("timer");
     
    146146
    147147        }, 300) );
     148 
     149  if (e.keyCode == 13) { // Enter
     150    e.preventDefault();
     151  }
    148152});
    149153{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.