From c370f779cc8fdf4b1f80396dfcfed5e5164df709 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 2 Jan 2013 14:01:39 +0000 Subject: [PATCH] stop enter reloading new page on search result request --- src/static/js/admin/plugins.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 61852028..0e492025 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -29,6 +29,14 @@ $(document).ready(function () { $("#progress.dialog").hide(); }); + $("form").submit(function(){ + var query = $('.search-results').data('query'); + query.pattern = $("#search-query")[0].value; + query.offset = 0; + search(); + return false; + }); + $("#do-search").unbind('click').click(function () { var query = $('.search-results').data('query'); query.pattern = $("#search-query")[0].value;