diff --git a/Site/Automation/SwarmFunctions.aspx.cs b/Site/Automation/SwarmFunctions.aspx.cs index f945ab31..28ee391a 100644 --- a/Site/Automation/SwarmFunctions.aspx.cs +++ b/Site/Automation/SwarmFunctions.aspx.cs @@ -428,7 +428,7 @@ namespace Swarmops.Frontend.Automation AuthenticationData authData = GetAuthenticationDataAndCulture(); - if (authData.CurrentUser.Identity != personId) + if (authData.CurrentUser.Identity != personId && personId != 0) { // TODO: Same thing with this case diff --git a/Site/Controls/v5/Base/AjaxTextBox.ascx b/Site/Controls/v5/Base/AjaxTextBox.ascx index 282e2931..4ee6f3e4 100644 --- a/Site/Controls/v5/Base/AjaxTextBox.ascx +++ b/Site/Controls/v5/Base/AjaxTextBox.ascx @@ -157,6 +157,10 @@ $('#<%=this.TextInput.ClientID%>').val(''); } + function <%=this.ClientID%>_focus() { + $('#<%=this.TextInput.ClientID%>').focus(); + } + function <%=this.ClientID%>_setValue(newValue) { $('#<%=this.TextInput.ClientID%>').val(newValue); } diff --git a/Site/Master-v5.master b/Site/Master-v5.master index da88f1bf..a177e476 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -427,6 +427,7 @@ <%=this.MasterEditPersonNewPassword1.ClientID%>_updateFailAnimate(); <%=this.MasterEditPersonNewPassword2.ClientID%>_updateFailAnimate(); + <%=this.MasterEditPersonNewPassword1.ClientID%>_focus(); } }); }