Skip to content

Commit 9eaecf1

Browse files
committed
Reset Password Dialog handles unknown errors from Enterprise 4.0. Fixes issue 88.
git-svn-id: https://share-extras.googlecode.com/svn/trunk/Reset Password Dialog@1315 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent 069b255 commit 9eaecf1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
link.forgotPass=Forgotten Password?
2-
message.passwordSent=Your password was reset successfully. Please check your e-mail for further instructions.
2+
message.passwordSent=Your password was reset successfully. Please check your e-mail for further instructions.
3+
message.unknownErrorTitle=Error
4+
message.unknownError=An unknown error occurred. Please contact your administrator.

config/alfresco/web-extension/templates/org/alfresco/global/slingshot-login.ftl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,22 @@
116116
},
117117
scope: this
118118
},
119+
onFailure:
120+
{
121+
fn: function VideoWidget_onConfigFeed_callback(response)
122+
{
123+
var errorText = (response.json && response.json.message) ?
124+
response.json.message : Alfresco.util.message("message.unknownError"),
125+
errorTitle = (response.json && response.json.status && response.json.status.name) ?
126+
response.json.status.name : Alfresco.util.message("message.unknownErrorTitle");
127+
128+
Alfresco.util.PopupManager.displayPrompt({
129+
title: errorTitle,
130+
text: errorText
131+
});
132+
},
133+
scope: this
134+
},
119135
doSetupFormsValidation:
120136
{
121137
fn: function VideoWidget_doSetupForm_callback(form)

0 commit comments

Comments
 (0)