|
CVS: phpwiki/themes/default toolbar.js,1.8,1.9: msg#00154web.wiki.phpwiki.checkins
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> |
|---|---|---|
| Previous by Date: | CVS: phpwiki/themes/default/templates head.tmpl,1.21,1.22: 00154, Reini Urban |
|---|---|
| Next by Date: | CVS: phpwiki/lib editpage.php,1.90,1.91: 00154, Reini Urban |
| Previous by Thread: | CVS: phpwiki/themes/default/templates head.tmpl,1.21,1.22i: 00154, Reini Urban |
| Next by Thread: | CVS: phpwiki/lib editpage.php,1.90,1.91: 00154, Reini Urban |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |