aboutsummaryrefslogtreecommitdiff
path: root/web/public
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-18 22:08:28 +0200
committerJochen Topf <jochen@topf.org>2014-05-18 22:08:28 +0200
commit19e5943636ade0f6dc1767005f13c6470bbfa96e (patch)
tree963234b573bf87e4cbe7684ee7554515847c44a3 /web/public
parent7a944d65082af044888e3c38093bfadf0d0dbf3d (diff)
downloadtaginfo-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.js4
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);