diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 618520282..ddff767bf 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -29,9 +29,17 @@ $(document).ready(function () { $("#progress.dialog").hide(); }); + $("form").submit(function(){ + var query = $('.search-results').data('query'); + query.pattern = $("#search-query").val(); + query.offset = 0; + search(); + return false; + }); + $("#do-search").unbind('click').click(function () { var query = $('.search-results').data('query'); - query.pattern = $("#search-query")[0].value; + query.pattern = $("#search-query").val(); query.offset = 0; search(); });