From 6ff02d161dad10d96916bc36a16883f97fd14458 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Apr 2013 15:16:54 +0200 Subject: [PATCH] Displaying error message if request times out --- wcfsetup/install/files/acp/templates/header.tpl | 1 + wcfsetup/install/files/js/WCF.js | 3 ++- wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 5ce6aa414b..907dfef397 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -69,6 +69,7 @@ 'wcf.global.confirmation.confirm': '{lang}wcf.global.confirmation.confirm{/lang}', 'wcf.global.confirmation.title': '{lang}wcf.global.confirmation.title{/lang}', 'wcf.global.decimalPoint': '{capture assign=decimalPoint}{lang}wcf.global.decimalPoint{/lang}{/capture}{$decimalPoint|encodeJS}', + 'wcf.global.error.timeout': '{lang}wcf.global.error.timeout{/lang}', 'wcf.global.error.title': '{lang}wcf.global.error.title{/lang}', 'wcf.global.loading': '{lang}wcf.global.loading{/lang}', 'wcf.global.page.jumpTo': '{lang}wcf.global.page.jumpTo{/lang}', diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 19c23d4394..c43980dbfa 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1586,7 +1586,8 @@ WCF.Action.Proxy = Class.extend({ } if (!this._suppressErrors && $showError !== false) { - $('

' + jqXHR.responseText + '

').wcfDialog({ title: WCF.Language.get('wcf.global.error.title') }); + var $message = (textStatus === 'timeout') ? WCF.Language.get('wcf.global.error.timeout') : jqXHR.responseText; + $('

' + $message + '

').wcfDialog({ title: WCF.Language.get('wcf.global.error.title') }); } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 2cf3f36252..6459ee9baf 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -896,6 +896,7 @@ + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 8dbd280abb..12976ee25b 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -896,6 +896,7 @@ + -- 2.20.1