From 3e1dc4e5c1567048603c33b44fd2676906a6994c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 16 Sep 2011 13:25:39 +0200 Subject: [PATCH] Fixed usage of language variable in JS --- wcfsetup/install/files/acp/js/WCF.ACP.js | 6 +++--- wcfsetup/install/files/acp/templates/header.tpl | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index c33d1956e2..09e256cb51 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -206,7 +206,7 @@ WCF.ACP.PackageInstallation.prototype = { // handle success if ($data.step == 'success') { var $id = WCF.getRandomID(); - $('#packageInstallationInnerContent').append('
'); + $('#packageInstallationInnerContent').append('
'); $('#' + $id).click($.proxy(function() { window.location.href = "index.php?page=PackageList" + SID_ARG_2ND; @@ -234,7 +234,7 @@ WCF.ACP.PackageInstallation.prototype = { // create button to handle next step if ($data.step && $data.node) { var $id = WCF.getRandomID(); - $('#packageInstallationInnerContent').append('
'); + $('#packageInstallationInnerContent').append('
'); $('#' + $id).click($.proxy(function() { // collect form values @@ -627,4 +627,4 @@ WCF.ACP.Worker.prototype = { this._dialog.wcfDialog('redraw'); } } -}; \ No newline at end of file +}; diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index e2107f7492..957de57765 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -56,6 +56,7 @@ {/if} WCF.Language.addObject({ + 'wcf.global.button.next': '{lang}wcf.global.button.next{/lang}', 'wcf.global.loading': '{lang}wcf.global.loading{/lang}', 'wcf.global.date.relative.minutes': '{capture assign=relativeMinutes}{lang}wcf.global.date.relative.minutes{/lang}{/capture}{@$relativeMinutes|encodeJS}', 'wcf.global.date.relative.hours': '{capture assign=relativeHours}{lang}wcf.global.date.relative.hours{/lang}{/capture}{@$relativeHours|encodeJS}', @@ -168,4 +169,4 @@
- \ No newline at end of file + -- 2.20.1