Avoid weird element focus on installation start
authorAlexander Ebert <ebert@woltlab.com>
Sat, 26 Nov 2016 11:51:46 +0000 (12:51 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 26 Nov 2016 11:51:46 +0000 (12:51 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js

index 91b7c1f712df75e4cccaa087cddf632a3563b218..22b6317de068bae593b9312cdaaf4a812038346a 100644 (file)
@@ -303,6 +303,10 @@ WCF.ACP.Package.Installation = Class.extend({
         * Prepares installation dialog.
         */
        prepareInstallation: function() {
+               if (document.activeElement) {
+                       document.activeElement.blur();
+               }
+               
                this._proxy.setOption('data', this._getParameters());
                this._proxy.sendRequest();
        },