Author: thomas.heute(a)jboss.com
Date: 2007-12-04 15:20:41 -0500 (Tue, 04 Dec 2007)
New Revision: 9291
Modified:
tags/JBoss_Portal_2_6_3/core/src/bin/portal-core-war/layouts/common/modal.jsp
tags/JBoss_Portal_2_6_3/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp
Log:
Add requested URL to modal iframe src
Modified: tags/JBoss_Portal_2_6_3/core/src/bin/portal-core-war/layouts/common/modal.jsp
===================================================================
---
tags/JBoss_Portal_2_6_3/core/src/bin/portal-core-war/layouts/common/modal.jsp 2007-12-04
19:31:27 UTC (rev 9290)
+++
tags/JBoss_Portal_2_6_3/core/src/bin/portal-core-war/layouts/common/modal.jsp 2007-12-04
20:20:41 UTC (rev 9291)
@@ -5,6 +5,6 @@
<div id="login-modal" style="display:none">
<div id="login-modal-msg"
style="display:none;width:257px;height:157px">
<% String loginHeight = "100%"; %>
- <iframe
src="<%=request.getAttribute("org.jboss.portal.PORTAL_CONTEXT_PATH")%>/auth/?loginheight=0"
frameborder="0" width="257" height="157"
scrolling="no" marginheight="0" marginwidth="0"
name="login-content" class="login-content"></iframe>
+ <iframe
src="<%=request.getAttribute("org.jboss.portal.PORTAL_CONTEXT_PATH")%>/auth/?loginheight=0"
frameborder="0" width="257" height="157"
scrolling="no" marginheight="0" marginwidth="0"
name="login-content" class="login-content"
id="loginIframe"></iframe>
</div>
</div>
\ No newline at end of file
Modified:
tags/JBoss_Portal_2_6_3/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp
===================================================================
---
tags/JBoss_Portal_2_6_3/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp 2007-12-04
19:31:27 UTC (rev 9290)
+++
tags/JBoss_Portal_2_6_3/core/src/resources/portal-core-war/WEB-INF/jsp/header/header.jsp 2007-12-04
20:20:41 UTC (rev 9291)
@@ -22,6 +22,9 @@
}else{
document.write('<a href=\"<%= loginURL
%>\">Login</a>');
}
+ //set the iframe src for login modal to requested URL
+ var iframeSrc = '<%= loginURL %>' + '?loginheight=0';
+ document.getElementById('loginIframe').src = iframeSrc;
</script>
<noscript>
Show replies by date