diff --git a/templates/layerindex/classes.html b/templates/layerindex/classes.html index c513d71..c2cd977 100644 --- a/templates/layerindex/classes.html +++ b/templates/layerindex/classes.html @@ -33,10 +33,10 @@
- +
- +
@@ -84,5 +84,9 @@ $("#filter-form input:text").first().select().focus(); }); {% endif %} + + $("#id_browse_btn").click(function() { + $("#id_search_text").val(""); + }); {% endblock %} diff --git a/templates/layerindex/distros.html b/templates/layerindex/distros.html index 880c07a..1d5b1f7 100644 --- a/templates/layerindex/distros.html +++ b/templates/layerindex/distros.html @@ -34,10 +34,10 @@
- +
- +
@@ -87,5 +87,9 @@ $("#filter-form input:text").first().select().focus(); }); {% endif %} + + $("#id_browse_btn").click(function() { + $("#id_search_text").val(""); + }); {% endblock %} diff --git a/templates/layerindex/machines.html b/templates/layerindex/machines.html index 5eee092..41054a3 100644 --- a/templates/layerindex/machines.html +++ b/templates/layerindex/machines.html @@ -33,10 +33,10 @@
- +
- +
@@ -86,5 +86,9 @@ $("#filter-form input:text").first().select().focus(); }); {% endif %} + + $("#id_browse_btn").click(function() { + $("#id_search_text").val(""); + }); {% endblock %} diff --git a/templates/layerindex/recipes.html b/templates/layerindex/recipes.html index cd89fb9..181bdcb 100644 --- a/templates/layerindex/recipes.html +++ b/templates/layerindex/recipes.html @@ -35,7 +35,7 @@
- +
@@ -97,7 +97,7 @@ }); function validate(){ - if (!$("#appendedInputButtons").val()){ + if (!$("#id_search_text").val()){ $("#errortext").html("

Please specify search text

"); $("#searchfield").addClass("has-error"); return false;