From: Matthias Schmidt Date: Mon, 5 Aug 2013 10:18:54 +0000 (+0200) Subject: Disables ACP search form submit X-Git-Tag: 2.0.0_Beta_7~62^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d67608272655b4c07d5db661e00547892724b2cf;p=GitHub%2FWoltLab%2FWCF.git Disables ACP search form submit Fixes #1448 --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 4925119d24..c16efca7a1 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -1903,6 +1903,11 @@ WCF.ACP.Search = WCF.Search.Base.extend({ init: function() { this._className = 'wcf\\data\\acp\\search\\provider\\ACPSearchProviderAction'; this._super('#search input[name=q]'); + + // disable form submitting + $('#search > form').on('submit', function(event) { + event.preventDefault(); + }); }, /**