Checkpoint commit
This commit is contained in:
@@ -34,8 +34,14 @@
|
||||
// public static AjaxInputCallbackResult FunctionName (string newValue, string cookie);
|
||||
//
|
||||
// The page must include IncludedControls.JsonParameters and IncludedControls.ColorAnimation among its script.
|
||||
|
||||
<%
|
||||
if (!string.IsNullOrEmpty(this.OnChange) || !string.IsNullOrEmpty(this.AjaxCallbackUrl))
|
||||
{
|
||||
Response.Write("$(this).css('background-color', '#FFFFA0');"); // set background yellow indicating processing
|
||||
}
|
||||
%>
|
||||
|
||||
$(this).css('background-color', '#FFFFA0');
|
||||
|
||||
if ("" != "<%=this.AjaxCallbackUrl%>") { // if there's a direct callback AJAX url
|
||||
|
||||
@@ -49,16 +55,16 @@
|
||||
} else {
|
||||
alertify.error(SwarmopsJS.unescape('<%= this.Localized_AjaxGeneralErrorSettingValue %>'));
|
||||
}
|
||||
$(this).css('background-color', '#FFA0A0');
|
||||
$(this).css('background-color', '#FFA0A0'); // set background red indicating error
|
||||
} else {
|
||||
if (msg.DisplayMessage != null) {
|
||||
alertify.log(msg.DisplayMessage);
|
||||
}
|
||||
$(this).css('background-color', '#E0FFE0');
|
||||
$(this).css('background-color', '#E0FFE0'); // set background green indicating success
|
||||
_initVal_<%=this.TextInput.ClientID%> = msg.NewValue;
|
||||
}
|
||||
$(this).val(_initVal_<%=this.TextInput.ClientID%>);
|
||||
$(this).animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
$(this).animate({ backgroundColor: "#FFFFFF" }, 250); // animate background back to white
|
||||
<%
|
||||
|
||||
if (!string.IsNullOrEmpty(this.OnChange))
|
||||
@@ -118,6 +124,10 @@
|
||||
<%=this.ClientID%>_initialize(newValue);
|
||||
}
|
||||
|
||||
function <%=this.ClientID%>_updateProgressAnimate() {
|
||||
$('#<%=this.TextInput.ClientID%>').css('background-color', '#FFFFA0');
|
||||
}
|
||||
|
||||
|
||||
function <%=this.ClientID%>_disable() {
|
||||
$('#<%=this.TextInput.ClientID%>').attr ('disabled', 'disabled');
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Swarmops.Frontend.Controls.Base
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.TextInput.Attributes["Placeholder"] = this.Placeholder;
|
||||
this.TextInput.TextMode = this.Mode;
|
||||
this.TextInput.TextMode = this.Mode; // Defaults to SingleLine, so will work uninitialized
|
||||
}
|
||||
|
||||
public string Text
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div title="<img src='/Images/Icons/iconshock-lock-256px.png' height='64' width='64' />">
|
||||
<h2><span class="spanModalEditingPersonName">PERSONNAME</span>: <asp:Label runat="server" ID="MasterLabelEditPersonHeaderSecurity" Text="#Security#"/></h2>
|
||||
<h2><span class="spanModalEditingPersonName">PERSONNAME</span>: <asp:Label runat="server" ID="MasterLabelEditPersonHeaderSecurity" Text="#Your Security#"/></h2>
|
||||
<div class="entryFields">
|
||||
<Swarmops5:AjaxTextBox ID="MasterEditPersonCurrentPassword" runat="server" Mode="Password" OnChanging="masterPersonEditorOnSecurityPasswordChanging" Cookie="CurrentPassword" AjaxCallbackUrl="" />​<br/>
|
||||
<div class="divMasterPersonEditSecurityRolldown" style="display:none"><Swarmops5:AjaxToggleSlider ID="MasterEditPerson2FA" runat="server" OnChange="masterPersonEditorOnFieldChange" Cookie="2FA" AjaxCallbackUrl="" />​<br/>
|
||||
@@ -393,6 +393,10 @@
|
||||
<%= this.MasterEditPersonPhone.ClientID %>_disableClear();
|
||||
<%= this.MasterEditPersonTwitterId.ClientID %>_disableClear();
|
||||
|
||||
<%= this.MasterEditPersonCurrentPassword.ClientID %>_clear();
|
||||
<%= this.MasterEditPersonNewPassword1.ClientID %>_clear();
|
||||
<%= this.MasterEditPersonNewPassword2.ClientID %>_clear();
|
||||
|
||||
$('span.spanModalEditingPersonName').text(SwarmopsJS.unescape('<%= this.Localized_LoadingPlaceholderShort %>'));
|
||||
|
||||
$('div.divMasterPersonEditSecurityRolldown').hide();
|
||||
|
||||
Reference in New Issue
Block a user