From 6d6ddd7f9f06d6cbf71ee3e1cff0f7b501432f4d Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 18 Jan 2015 12:15:41 +0100 Subject: [PATCH] Prevent form submit on plugin page --- src/static/js/admin/plugins.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 8a4c732e5..15406f5f4 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -131,6 +131,11 @@ $(document).ready(function () { $("#search-query").unbind('keyup').keyup(function () { search($("#search-query").val()); }); + + // Prevent form submit + $('#search-query').parent().bind('submit', function() { + return false; + }); // update & install $(".do-install, .do-update").unbind('click').click(function (e) {