logo       

CVS: phpwiki/themes/default toolbar.js,1.8,1.9: msg#00154

web.wiki.phpwiki.checkins

Subject: CVS: phpwiki/themes/default toolbar.js,1.8,1.9

Update of /cvsroot/phpwiki/phpwiki/themes/default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32548/themes/default

Modified Files:
toolbar.js
Log Message:
add AddPlugin support

Index: toolbar.js
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/default/toolbar.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -2 -b -p -d -r1.8 -r1.9
--- toolbar.js 29 Nov 2004 17:57:36 -0000 1.8
+++ toolbar.js 25 Jan 2005 07:17:32 -0000 1.9
@@ -27,13 +27,18 @@ function addTagButton(imageFile, speedTi
}
// This function generates a pulldown list to select from.
-// plugins, pagenames, categories. not with document.write because we cannot
use self.opener then.
+// plugins, pagenames, categories.
+// not with document.write because we cannot use self.opener then.
//function addPulldown(imageFile, speedTip, pages) {
// addButton(imageFile, speedTip, "showPulldown", pages);
// return;
//}
+// pages is either an array of strings or an array of array(name,value)
function showPulldown(title, pages, okbutton, closebutton) {
pullwin =
window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,height=270,width=180');

pullwin.window.document.write('<html><head><title>'+escapeQuotes(title)+'</title><style
type=\"text/css\"><'+'!'+'-- body
{font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:10pt;} input
{font-weight:bold} option {font-size:9pt} --'+'></style></head><body
bgcolor=\"#dddddd\"><form><select name=\"select\"
size=\"'+((pages.length>20)?'20':new String(pages.length))+'\"
ondblclick=\"if(self.opener)self.opener.do_pulldown(document.forms[0].select.value);
return false;\">');
for (i=0; i<pages.length; i++){
+ if (pages[i][1])
+ pullwin.window.document.write('<option
value="'+pages[i][1]+'">'+escapeQuotes(pages[i][0])+'</option>\n');
+ else
pullwin.window.document.write('<option
value="'+pages[i]+'">'+escapeQuotes(pages[i])+'</option>\n');
}



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise