From e72efaf944ef8298a320b9eac0dd2c264770bb45 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 18 Apr 2014 10:31:01 +0200 Subject: [PATCH] Focus next button after worker completion --- wcfsetup/install/files/acp/js/WCF.ACP.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 43210e51be..f26137cffe 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -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 = $('
').appendTo(this._dialog); - $('').appendTo($formSubmit).click(function() { window.location = data.proceedURL; }); + $('').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 +}); -- 2.20.1