Skip to contentSkip to conversation

conga/luci/plone-custom conga.js global_person ...

Cluster-devel [email protected] 1 participant 1 message Oct 10, 2006

lore
Share & tools
lore
#0 lore raw

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

luci/plone-custom/conga.js +6 -0
@@ -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);
+}
luci/plone-custom/global_personalbar +1 -1
@@ -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">