@@ -355,15 +355,6 @@
// This JavaScript block is for the Master Modal Person Editor.
- $(document).ready(function() {
- $('.MasterToggles').toggles(
- { text: {
- on: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOn_Upper %>'),
- off: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOff_Upper %>')
- }
- }).change(function() {});
- });
-
function masterBeginEditPerson(personId) {
_master_PersonEditedId = personId;
@@ -415,6 +406,15 @@
var _master_PersonEditLoading = false;
+ function masterPersonEditorOnToggle(newValue, fieldName, controlName) {
+ // Do the AJAX call from here, as we need to also pass along the person ID of the person edited
+ // (the AjaxToggleSlider auto-callback is disabled for this reason)
+
+
+ alert("Field Change: " + fieldName + " changed to '" + newValue + "'");
+ }
+
+
function masterPersonEditorOnFieldChange(newValue, fieldName, controlName) {
// Do the AJAX call from here, as we need to also pass along the person ID of the person edited
// (the AjaxTextBox auto-callback is disabled for this reason, code duplicated here)
@@ -458,10 +458,6 @@
window[controlName + "_updateFailAnimate"](result.NewValue);
});
-
-
- //alert("Field Change: " + fieldName + " changed to '" + newValue + "'");
-
}
function masterEndEditPerson() {
diff --git a/Site/Master-v5.master.designer.cs b/Site/Master-v5.master.designer.cs
index c78ff67e..2d0e0807 100644
--- a/Site/Master-v5.master.designer.cs
+++ b/Site/Master-v5.master.designer.cs
@@ -373,13 +373,13 @@ namespace Swarmops.Frontend {
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonHeaderSecurityProvisioning;
///
- /// MasterLabelEditPersonSecurity2FA control.
+ /// MasterToggleEditPerson2FA control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonSecurity2FA;
+ protected global::Swarmops.Frontend.Controls.Base.AjaxToggleSlider MasterToggleEditPerson2FA;
///
/// MasterLabelEditPersonResetPassword control.
diff --git a/Site/web.config b/Site/web.config
index b0caa90c..7535026e 100644
--- a/Site/web.config
+++ b/Site/web.config
@@ -33,6 +33,7 @@
+