cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/plone-custom conga.js global_person ...
Date: 10 Oct 2006 19:19:14 -0000	[thread overview]
Message-ID: <20061010191914.22068.qmail@sourceware.org> (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

--- 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">



                 reply	other threads:[~2006-10-10 19:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061010191914.22068.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).