diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-18 22:08:28 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-18 22:08:28 +0200 |
commit | 19e5943636ade0f6dc1767005f13c6470bbfa96e (patch) | |
tree | 963234b573bf87e4cbe7684ee7554515847c44a3 /web/public | |
parent | 7a944d65082af044888e3c38093bfadf0d0dbf3d (diff) | |
download | taginfo-19e5943636ade0f6dc1767005f13c6470bbfa96e.tar taginfo-19e5943636ade0f6dc1767005f13c6470bbfa96e.tar.gz |
Disable search when search field is empty.
Diffstat (limited to 'web/public')
-rw-r--r-- | web/public/js/taginfo.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index c37f29e..c800f2f 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -804,6 +804,10 @@ jQuery(document).ready(function() { } }); + jQuery('#search_form').bind('submit', function(event) { + return jQuery('input#search').val() != ''; + }); + jQuery(window).resize(function() { resize_box(); resize_grid(current_grid); |