Focus next button after worker completion
authorMatthias Schmidt <gravatronics@live.com>
Fri, 18 Apr 2014 08:31:01 +0000 (10:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 18 Apr 2014 08:31:01 +0000 (10:31 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js

index 43210e51be8b119b7f203465d9e5fd538fcf1465..f26137cffeb945ce1b03881b860cb6fc8ea47fac 100644 (file)
@@ -1699,7 +1699,7 @@ WCF.ACP.Worker = Class.extend({
                // update progress
                this._dialog.find('progress').attr('value', data.progress).text(data.progress + '%').next('span').text(data.progress + '%');
                
-               // worker is still busy with it's business, carry on
+               // worker is still busy with its business, carry on
                if (data.progress < 100) {
                        // send request for next loop
                        this._proxy.setOption('data', {
@@ -1715,7 +1715,7 @@ WCF.ACP.Worker = Class.extend({
                else {
                        // display continue button
                        var $formSubmit = $('<div class="formSubmit" />').appendTo(this._dialog);
-                       $('<button class="buttonPrimary">' + WCF.Language.get('wcf.global.button.next') + '</button>').appendTo($formSubmit).click(function() { window.location = data.proceedURL; });
+                       $('<button class="buttonPrimary">' + WCF.Language.get('wcf.global.button.next') + '</button>').appendTo($formSubmit).focus().click(function() { window.location = data.proceedURL; });
                        
                        this._dialog.wcfDialog('render');
                }
@@ -2397,4 +2397,4 @@ WCF.ACP.Stat.Chart = Class.extend({
                        }
                });
        }
-});
\ No newline at end of file
+});