[Cluster-devel] conga/luci/plone-custom conga.js global_person ...

rmccabe at sourceware.org rmccabe at sourceware.org
Tue Oct 10 19:19:14 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2006-10-10 19:19:13

Modified files:
	luci/plone-custom: conga.js global_personalbar 

Log message:
	display docs in a floating window about half the width of the parent window and a little more than half the hight.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga.js.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/global_personalbar.diff?cvsroot=cluster&r1=1.4&r2=1.5

--- conga/luci/plone-custom/conga.js	2006/10/09 15:48:37	1.2
+++ conga/luci/plone-custom/conga.js	2006/10/10 19:19:13	1.3
@@ -4,3 +4,9 @@
 	document.title = title_str;
 	return (0);
 }
+
+function popup_window(url, width_percent, height_percent) {
+	var width = window.innerWidth * (width_percent / 100);
+	var height = window.innerHeight * (height_percent / 100);
+	window.open('luci/doc', '', 'width=' + width + ',height=' + height + ',scrollbars,resizable', false);
+}
--- conga/luci/plone-custom/global_personalbar	2006/10/10 18:08:08	1.4
+++ conga/luci/plone-custom/global_personalbar	2006/10/10 19:19:13	1.5
@@ -11,7 +11,7 @@
 <h5 class="hiddenStructure" i18n:translate="heading_personal_tools">Personal tools</h5>
 
 <ul id="portal-personaltools">
-	<li><a target="new" href="/luci/doc/">help</a></li>
+	<li><a href="javascript:javascript:popup_window('/luci/doc/', 55, 65);">help</a></li>
 
 <tal:comment tal:replace="nothing">
 	<tal:block condition="not: isAnon">




More information about the Cluster-devel mailing list