Using auto-aborting in WCF.Search.Base
authorMagnus Kühn <magnus.khn@gmail.com>
Sun, 7 Apr 2013 19:09:35 +0000 (21:09 +0200)
committerMagnus Kühn <magnus.khn@gmail.com>
Sun, 7 Apr 2013 19:09:35 +0000 (21:09 +0200)
wcfsetup/install/files/js/WCF.js

index f21792d897e9be849661e0154ac6ecbd167bad6c..ed40c292812467671ecc78df9884278021a828d5 100755 (executable)
@@ -4792,7 +4792,8 @@ WCF.Search.Base = Class.extend({
                
                this._proxy = new WCF.Action.Proxy({
                        showLoadingOverlay: (showLoadingOverlay !== true ? false : true),
-                       success: $.proxy(this._success, this)
+                       success: $.proxy(this._success, this),
+                       autoAbortPrevious: true
                });
                
                if (this._searchInput.is('input')) {