From: <var...@us...> - 2014-07-31 16:00:05
|
Revision: 9046 http://sourceforge.net/p/phpwiki/code/9046 Author: vargenau Date: 2014-07-31 15:59:56 +0000 (Thu, 31 Jul 2014) Log Message: ----------- No tabs Modified Paths: -------------- trunk/themes/default/toolbar.js Modified: trunk/themes/default/toolbar.js =================================================================== --- trunk/themes/default/toolbar.js 2014-07-31 14:40:26 UTC (rev 9045) +++ trunk/themes/default/toolbar.js 2014-07-31 15:59:56 UTC (rev 9046) @@ -1,4 +1,4 @@ -// Toolbar JavaScript support functions. Taken from mediawiki +// Toolbar JavaScript support functions. Taken from mediawiki // Some "constants" var doctype = '<!DOCTYPE html>'; @@ -22,16 +22,14 @@ //width=\"23\" height=\"22\" document.write(");\"><img src=\""+imageFile+"\" width=\"18\" height=\"18\" border=\"0\" alt=\""+speedTip+"\" title=\""+speedTip+"\">"); document.write("</a>"); - return; } function addTagButton(imageFile, speedTip, tagOpen, tagClose, sampleText) { addButton(imageFile, speedTip, "insertTags", [tagOpen, tagClose, sampleText]); - return; } -// This function generates a popup list to select from. +// This function generates a popup list to select from. // In an external window so far, but we really want that as acdropdown pulldown, hence the name. -// plugins, pagenames, categories, templates. +// plugins, pagenames, categories, templates. // Not with document.write because we cannot use self.opener then. //function addPulldown(imageFile, speedTip, pages) { // addButton(imageFile, speedTip, "showPulldown", pages); @@ -69,13 +67,12 @@ function do_pulldown(text,fromid) { // do special actions dependent on fromid: tb-categories if (fromid == 'tb-categories') { - var txtarea = document.getElementById('edit-content'); - text = unescapeSpecial(text); - txtarea.value += '\n'+text; + var txtarea = document.getElementById('edit-content'); + text = unescapeSpecial(text); + txtarea.value += '\n'+text; } else { - insertTags(text, '', '\n'); + insertTags(text, '', '\n'); } - return; } function addInfobox(infoText) { // if no support for changing selection, add a small copy & paste field @@ -85,8 +82,8 @@ if(!document.selection && !is_nav) { infoText=escapeQuotesHTML(infoText); document.write("<form name='infoform' id='infoform'>"+ - "<input size=80 id='infobox' name='infobox' value=\""+ - infoText+"\" readonly=\"readonly\"></form>"); + "<input size=80 id='infobox' name='infobox' value=\""+ + infoText+"\" readonly=\"readonly\"></form>"); } } function escapeQuotes(text) { @@ -151,9 +148,9 @@ var myText = (txtarea.value).substring(startPos, endPos); if(!myText) { myText=sampleText;} if(myText.charAt(myText.length - 1) == " "){ // exclude ending space char, if any - subst = tagOpen + myText.substring(0, (myText.length - 1)) + tagClose + " "; + subst = tagOpen + myText.substring(0, (myText.length - 1)) + tagClose + " "; } else { - subst = tagOpen + myText + tagClose; + subst = tagOpen + myText + tagClose; } txtarea.value = txtarea.value.substring(0, startPos) + subst + txtarea.value.substring(endPos, txtarea.value.length); txtarea.focus(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |