From 86ea2c7043920e7b577d11b6ac0ffb3e61492edb Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 10 May 2016 17:32:28 +0200 Subject: [PATCH] Fixed Init problem on EasyUI and hidden modal divs --- Site5/Controls/v5/Base/ModalDialog.ascx | 15 ++++++++++++++- Site5/Style/style-v5.css | 1 - 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Site5/Controls/v5/Base/ModalDialog.ascx b/Site5/Controls/v5/Base/ModalDialog.ascx index 960c018e..f9160e01 100644 --- a/Site5/Controls/v5/Base/ModalDialog.ascx +++ b/Site5/Controls/v5/Base/ModalDialog.ascx @@ -17,6 +17,12 @@ }); function <%=this.ClientID%>_open() { + + if (!<%=this.ClientID%>_initialized) { + $('#<%=this.ClientID%>_hiddenInitArea div.divInitializedContent').appendTo('#<%=this.ClientID%>_divModalBox div.content'); + <%=this.ClientID%>_initialized = true; + } + $('#<%=this.ClientID%>_divModalCover').fadeIn(); } @@ -31,6 +37,7 @@ %> } + var <%=this.ClientID%>_initialized = false; @@ -39,9 +46,15 @@
+ + + + \ No newline at end of file diff --git a/Site5/Style/style-v5.css b/Site5/Style/style-v5.css index a20c2f50..f88d378f 100644 --- a/Site5/Style/style-v5.css +++ b/Site5/Style/style-v5.css @@ -365,7 +365,6 @@ body.rtl .sidebar { .modalWrap { position: absolute; - /*height: 70%;*/ width: 980px; left: 0; right: 0;