diff --git a/Site/Bases/DataV5Base.cs b/Site/Bases/DataV5Base.cs
index a42e7f52..bd32df29 100644
--- a/Site/Bases/DataV5Base.cs
+++ b/Site/Bases/DataV5Base.cs
@@ -178,5 +178,10 @@ namespace Swarmops.Frontend
{
return CommonV5.JavascriptEscape (input);
}
+
+ public string Localize_GenericAjaxError
+ {
+ get { return JavascriptEscape(Resources.Global.Error_AjaxCallException); }
+ }
}
}
\ No newline at end of file
diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js
index 18062c74..6a422647 100644
--- a/Site/Scripts/Swarmops-v5.js
+++ b/Site/Scripts/Swarmops-v5.js
@@ -171,10 +171,10 @@ function _master_updateMalfunctions(issueList) {
}
if (_error_ClientSocketLost) {
- issueList.push(_master_constructMalfunctionData("ClientSocket", _errorDisplay_clientSocketLost));
+ issueList.push(_master_constructMalfunctionData("ClientSocket", _errorDisplay_clientSocketLost)); // defined in master
}
else if (_masterSocketHeartbeatsLost) {
- issueList.push(_master_constructMalfunctionData("ClientHeartbeat", _errorDisplay_clientHeartbeatLost));
+ issueList.push(_master_constructMalfunctionData("ClientHeartbeat", _errorDisplay_clientHeartbeatLost)); // defined in master
}
_master_updateListBox($('#divMalfunctionsList'), issueList);
diff --git a/Site/Security/ResetPassword.aspx b/Site/Security/ResetPassword.aspx
index af98ac82..b50ab218 100644
--- a/Site/Security/ResetPassword.aspx
+++ b/Site/Security/ResetPassword.aspx
@@ -7,28 +7,57 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
- Swarmops Alpha - Password Reset
+ Swarmops - Reset Password
+
+
+
+
+
+
+
-
-
+
+
+
-
+
+
+
+
+
+
+
+
@@ -49,12 +78,12 @@
jsonData.newPassword = $('#<%=this.TextPassword1.ClientID%>').val();
if (jsonData.newPassword != $('#<%=this.TextPassword2.ClientID%>').val()) {
- alertify.error("<%= Resources.Pages.Security.ResetPassword_NewPasswordsDontMatch %>");
+ alertify.error(SwarmopsJS.unescape('<%= this.Localize_NewPasswordsDontMatch %>'));
return false;
}
if (jsonData.newPassword == "") {
- alertify.error("<%= Resources.Pages.Security.ResetPassword_NoEmpty %>");
+ alertify.error(SwarmopsJS.unescape('<%=this.Localize_NoEmpty%>'));
return false;
}
@@ -69,11 +98,11 @@
if (msg.d) {
document.location = "/"; // success, auth cookies have been set - redirect to Dashboard
} else {
- alertify.alert("<%= Resources.Pages.Security.ResetPassword_Failed %>");
+ alertify.dialog(SwarmopsJS.unescape('<%=this.Localize_ResetPasswordFailed%>'));
}
},
error: function (msg) {
- alertify.error("<%=Resources.Global.Error_AjaxCallException%>");
+ alertify.error(SwarmopsJS.unescape('<%=this.Localize_GenericAjaxError%>'));
}
});
diff --git a/Site/Security/ResetPassword.aspx.cs b/Site/Security/ResetPassword.aspx.cs
index c63423b7..b1c7b9e1 100644
--- a/Site/Security/ResetPassword.aspx.cs
+++ b/Site/Security/ResetPassword.aspx.cs
@@ -142,8 +142,24 @@ namespace Swarmops.Pages.Security
return true; // temp
// do NOT NOT NOT trim password - this is deliberate. Passwords starting/ending in whitespace must be possible
-
-
}
+
+
+ public string Localize_NewPasswordsDontMatch
+ {
+ get { return CommonV5.JavascriptEscape(Resources.Pages.Security.ResetPassword_NewPasswordsDontMatch); }
+ }
+
+ public string Localize_NoEmpty
+ {
+ get { return CommonV5.JavascriptEscape(Resources.Pages.Security.ResetPassword_NoEmpty); }
+ }
+
+ public string Localize_ResetPasswordFailed
+ {
+ get { return CommonV5.JavascriptEscape(Resources.Pages.Security.ResetPassword_Failed); }
+ }
+
+
}
}
\ No newline at end of file
diff --git a/Site/Security/ResetPassword.aspx.designer.cs b/Site/Security/ResetPassword.aspx.designer.cs
index 9ea76715..3775b7ce 100644
--- a/Site/Security/ResetPassword.aspx.designer.cs
+++ b/Site/Security/ResetPassword.aspx.designer.cs
@@ -21,6 +21,42 @@ namespace Swarmops.Pages.Security {
///
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
+ ///
+ /// ExternalScriptEasyUI control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::Swarmops.Frontend.Controls.UI.ExternalScripts ExternalScriptEasyUI;
+
+ ///
+ /// IncludedScripts control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::Swarmops.Frontend.Controls.UI.IncludedScripts IncludedScripts;
+
+ ///
+ /// PlaceHolderHead control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ContentPlaceHolder PlaceHolderHead;
+
+ ///
+ /// LiteralCrowdinScript control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Literal LiteralCrowdinScript;
+
///
/// form2 control.
///