From 1ac4eb15352e2c02a3d952104d7b0f3701d7f3e7 Mon Sep 17 00:00:00 2001 From: vargenau Date: Thu, 7 May 2015 08:46:08 +0000 Subject: [PATCH] Remove unused function addButton git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9695 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/MonoBook/wikibits.js | 28 ---------------------------- themes/default/toolbar.js | 15 --------------- 2 files changed, 43 deletions(-) diff --git a/themes/MonoBook/wikibits.js b/themes/MonoBook/wikibits.js index 3ecb5bd0a..e5cc0c396 100644 --- a/themes/MonoBook/wikibits.js +++ b/themes/MonoBook/wikibits.js @@ -226,34 +226,6 @@ function toggleToc() { } } -// this function generates the actual toolbar buttons with localized text -// we use it to avoid creating the toolbar where javascript is not enabled -function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText) { - - speedTip=escapeQuotes(speedTip); - tagOpen=escapeQuotes(tagOpen); - tagClose=escapeQuotes(tagClose); - sampleText=escapeQuotes(sampleText); - var mouseOver=""; - - // we can't change the selection, so we show example texts - // when moving the mouse instead, until the first button is clicked - if(!document.selection && !is_gecko) { - // filter backslashes so it can be shown in the infobox - var re=new RegExp("\\\\n","g"); - tagOpen=tagOpen.replace(re,""); - tagClose=tagClose.replace(re,""); - mouseOver = "onMouseover=\"if(!noOverwrite){document.infoform.infobox.value='"+tagOpen+sampleText+tagClose+"'};\""; - } - - document.write(""); - - document.write("\""+speedTip+"\""); - document.write(""); - return; -} - function escapeQuotes(text) { var re=new RegExp("'","g"); text=text.replace(re,"\\'"); diff --git a/themes/default/toolbar.js b/themes/default/toolbar.js index 9616e55aa..9ed73b9b1 100644 --- a/themes/default/toolbar.js +++ b/themes/default/toolbar.js @@ -8,21 +8,6 @@ var cssfile = '0) document.write(","); - document.write("'"+escapeQuotes(args[i])+"'"); - } - document.write(");\">\""+speedTip+"\""); - document.write(""); -} - // This function generates a popup list to select from. // plugins, pagenames, categories, templates. // Not with document.write because we cannot use self.opener then. -- 2.45.0