From: <var...@us...> - 2015-04-10 16:08:40
|
Revision: 9658 http://sourceforge.net/p/phpwiki/code/9658 Author: vargenau Date: 2015-04-10 16:08:33 +0000 (Fri, 10 Apr 2015) Log Message: ----------- Remove unused Javascript functions addTagButton and escapeQuotesHTML Modified Paths: -------------- trunk/themes/MonoBook/wikibits.js trunk/themes/default/toolbar.js Modified: trunk/themes/MonoBook/wikibits.js =================================================================== --- trunk/themes/MonoBook/wikibits.js 2015-04-10 15:59:32 UTC (rev 9657) +++ trunk/themes/MonoBook/wikibits.js 2015-04-10 16:08:33 UTC (rev 9658) @@ -264,12 +264,6 @@ return text; } -function escapeQuotesHTML(text) { - var re=new RegExp('"',"g"); - text=text.replace(re,"""); - return text; -} - // apply tagOpen/tagClose to selection in textarea, // use sampleText instead of selection if there is none // copied and adapted from phpBB Modified: trunk/themes/default/toolbar.js =================================================================== --- trunk/themes/default/toolbar.js 2015-04-10 15:59:32 UTC (rev 9657) +++ trunk/themes/default/toolbar.js 2015-04-10 16:08:33 UTC (rev 9658) @@ -22,17 +22,10 @@ document.write(");\"><img src=\""+imageFile+"\" alt=\""+speedTip+"\" title=\""+speedTip+"\">"); document.write("</a>"); } -function addTagButton(imageFile, speedTip, tagOpen, tagClose, sampleText) { - addButton(imageFile, speedTip, "insertTags", [tagOpen, tagClose, sampleText]); -} // This function generates a popup list to select from. // 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); -// return; -//} // pages is either an array of strings or an array of array(name,value) function showPulldown(title, pages, okbutton, closebutton, fromid) { var height = new String(Math.min(315, 80 + (pages.length * 12))); // 270 or smaller @@ -81,11 +74,6 @@ text=text.replace(re,"\\n"); return text; } -function escapeQuotesHTML(text) { - var re=new RegExp('"',"g"); - text=text.replace(re,"""); - return text; -} function unescapeSpecial(text) { // IE var re=new RegExp('%0A',"g"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |