diff --git a/Site/Controls/v5/Base/AjaxTextBox.ascx b/Site/Controls/v5/Base/AjaxTextBox.ascx index d9d915f3..8aafbcd9 100644 --- a/Site/Controls/v5/Base/AjaxTextBox.ascx +++ b/Site/Controls/v5/Base/AjaxTextBox.ascx @@ -96,12 +96,10 @@ function <%=this.ClientID%>_fireOnChanging() { <%=this.ClientID%>_onChangingTimer = null; - alertify.log("FireOnChanging"); - <% - if (string.IsNullOrEmpty(this.OnChanging)) + if (!string.IsNullOrEmpty(this.OnChanging)) { - Response.Write(this.OnChanging + "(" + this.TextInput.ClientID + ".val(), '" + this.Cookie + "', '" + this.ClientID + "');"); // cookie may be empty and that's ok + Response.Write(this.OnChanging + "($('#" + this.TextInput.ClientID + "').val(), '" + this.Cookie + "', '" + this.ClientID + "');"); // cookie may be empty and that's ok } %> } diff --git a/Site/Controls/v5/Base/AjaxTextBox.ascx.cs b/Site/Controls/v5/Base/AjaxTextBox.ascx.cs index 93cac768..8522c639 100644 --- a/Site/Controls/v5/Base/AjaxTextBox.ascx.cs +++ b/Site/Controls/v5/Base/AjaxTextBox.ascx.cs @@ -12,6 +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; } public string Text @@ -30,6 +31,7 @@ namespace Swarmops.Frontend.Controls.Base public string OnChange { get; set; } public string OnChanging { get; set; } public string AjaxCallbackUrl { set; get; } + public TextBoxMode Mode { get; set; } public string CssClass { diff --git a/Site/Master-v5.master b/Site/Master-v5.master index f648b3c9..320aa1bf 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -248,10 +248,10 @@

PERSONNAME:

- ​
+ ​
@@ -364,6 +364,23 @@ $(document).ready(function() { }); + var _master_PersonEditor_SecurityShowing = false; + + function masterPersonEditorOnSecurityPasswordChanging(newValue, cookie, controlName) { + + if (newValue == "foobar") { + if (!_master_PersonEditor_SecurityShowing) { + $('div.divMasterPersonEditSecurityRolldown').slideDown(); + _master_PersonEditor_SecurityShowing = true; + } + } else { + if (_master_PersonEditor_SecurityShowing) { + $('div.divMasterPersonEditSecurityRolldown').slideUp(); + _master_PersonEditor_SecurityShowing = false; + } + } + } + function masterBeginEditPerson(personId) { _master_PersonEditedId = personId; @@ -379,6 +396,7 @@ $('span.spanModalEditingPersonName').text(SwarmopsJS.unescape('<%= this.Localized_LoadingPlaceholderShort %>')); $('div.divMasterPersonEditSecurityRolldown').hide(); + _master_PersonEditor_SecurityShowing = false; // Open the Modal <%=this.ModalMasterEditPerson.ClientID%>_open();