Disables ACP search form submit
authorMatthias Schmidt <gravatronics@live.com>
Mon, 5 Aug 2013 10:18:54 +0000 (12:18 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 5 Aug 2013 10:18:54 +0000 (12:18 +0200)
Fixes #1448

wcfsetup/install/files/acp/js/WCF.ACP.js

index 4925119d246d5227f124c355caaf98780661da38..c16efca7a1b9387d8c9f669b43255ffee9d4bb2a 100644 (file)
@@ -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();
+               });
        },
        
        /**