diff --git a/Site/Master-v5.master b/Site/Master-v5.master index d55bcbf9..a305f279 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -529,7 +529,8 @@ if (response) { var jsonData = { - password: <%=this.MasterEditPersonCurrentPassword.ClientID%>_value() + personId: _master_PersonEditedId, + password: <%=this.MasterEditPersonCurrentPassword.ClientID%>_val() } SwarmopsJS.ajaxCall("/Automation/SwarmFunctions.aspx/RemoveBitId", jsonData, function(result) { if (result.Success) { @@ -544,6 +545,11 @@ <%= this.MasterEditPerson2FA.ClientID %>_initialize(true); alertify.log(SwarmopsJS.unescape('<%=this.Localized_MasterPersonEdit_Cancelled2FARemoval%>')); } + }, + function response() { + // onerror + <%= this.MasterEditPerson2FA.ClientID %>_initialize(true); + alertify.error(SwarmopsJS.unescape('<%=this.Localized_GenericAjaxError%>')); }); } } @@ -664,7 +670,7 @@ alertify.log(result.Success); if (result.Success) { _master_bitIdRecheckTimer = null; - <%=this.ModalMasterEnableBitId%>_close(); + <%=this.ModalMasterEnableBitId.ClientID%>_close(); alertify.alert(result.DisplayMessage); } else { // not ready yet diff --git a/Site/Master-v5.master.cs b/Site/Master-v5.master.cs index 2001cba4..5fd98a2a 100644 --- a/Site/Master-v5.master.cs +++ b/Site/Master-v5.master.cs @@ -496,6 +496,11 @@ namespace Swarmops.Frontend } + public string Localized_GenericAjaxError + { + get { return CommonV5.JavascriptEscape(Resources.Global.Error_AjaxCallException); } + } + public string GenerateBitIdToken { get