Need to wrap the login javascript in a placeholder for Concorde

This commit is contained in:
Sebastiaan Janssen
2013-02-14 09:06:15 -01:00
parent b101e25e7a
commit 7640908781
3 changed files with 13 additions and 0 deletions

View File

@@ -109,11 +109,13 @@
<asp:HiddenField ID="hf_height" runat="server" />
<asp:HiddenField ID="hf_width" runat="server" />
</form>
<asp:PlaceHolder ID="loginJavascript" runat="server">
<script type="text/javascript">
jQuery("#<%= lname.ClientID %>").focus();
jQuery('#<%= hf_height.ClientID %>').value = getViewportHeight();
jQuery('#<%= hf_width.ClientID %>').value = getViewportWidth();
</script>
</asp:PlaceHolder>
<asp:PlaceHolder Visible="false" ID="loginError" runat="server">
<script type="text/javascript">
jQuery(document).ready(function () {

View File

@@ -109,11 +109,13 @@
<asp:HiddenField ID="hf_height" runat="server" />
<asp:HiddenField ID="hf_width" runat="server" />
</form>
<asp:PlaceHolder ID="loginJavascript" runat="server">
<script type="text/javascript">
jQuery("#<%= lname.ClientID %>").focus();
jQuery('#<%= hf_height.ClientID %>').value = getViewportHeight();
jQuery('#<%= hf_width.ClientID %>').value = getViewportWidth();
</script>
</asp:PlaceHolder>
<asp:PlaceHolder Visible="false" ID="loginError" runat="server">
<script type="text/javascript">
jQuery(document).ready(function () {

View File

@@ -156,6 +156,15 @@ namespace umbraco.cms.presentation {
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hf_width;
/// <summary>
/// loginJavascript control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder loginJavascript;
/// <summary>
/// loginError control.
/// </summary>