From 893a8d2ffcb8078fbf0472fae2e0ed71ef75f40f Mon Sep 17 00:00:00 2001 From: sakamocchi Date: Fri, 18 May 2012 14:27:28 +0900 Subject: [PATCH] =?utf8?q?REMOVE:=20=E3=83=96=E3=83=83=E3=82=AF=E3=83=9E?= =?utf8?q?=E3=83=BC=E3=82=AF=E3=83=AC=E3=83=83=E3=83=88=E7=94=A8=E3=82=B9?= =?utf8?q?=E3=82=AD=E3=83=B3=E3=81=8B=E3=82=89=E4=B8=8D=E8=A6=81=E3=81=AAJ?= =?utf8?q?avaScript=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E5=89=8A?= =?utf8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/admin/bookmarklet/javascripts/admin.js | 59 ------------------- .../admin/bookmarklet/javascripts/compatibility.js | 33 ----------- skins/admin/bookmarklet/javascripts/opennew.js | 62 -------------------- .../admin/bookmarklet/javascripts/templateEdit.js | 66 ---------------------- 4 files changed, 220 deletions(-) delete mode 100644 skins/admin/bookmarklet/javascripts/admin.js delete mode 100644 skins/admin/bookmarklet/javascripts/compatibility.js delete mode 100644 skins/admin/bookmarklet/javascripts/opennew.js delete mode 100644 skins/admin/bookmarklet/javascripts/templateEdit.js diff --git a/skins/admin/bookmarklet/javascripts/admin.js b/skins/admin/bookmarklet/javascripts/admin.js deleted file mode 100644 index 7f637b1..0000000 --- a/skins/admin/bookmarklet/javascripts/admin.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) - * Copyright (C) 2002-2012 The Nucleus Group - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * (see nucleus/documentation/index.html#license for more info) - * - * Some JavaScript code for the admin area - * - * $Id: admin.js 1388 2009-07-18 06:31:28Z shizuki $ - */ - -function help(url) { - popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0'); - if (popup.focus) popup.focus(); - if (popup.GetAttention) popup.GetAttention(); - return false; -} - -var oldCellColor = "#000"; -function focusRow(row) { - var cells = row.cells; - if (!cells) return; - oldCellColor = cells[0].style.backgroundColor; - for (var i=0;i... section of your page, add the following line: - * - * - * - * Then, add the following to your tag: - * - * - * - * And you're all done. - * - * Variables that can be overridden if necessary: - * local = something to recognize local URLs (by default, if your page is something like - * http://www.example.com/path/page.html, then local will be automatically set to - * http://www.example.com/path/) - * exception = something to recognize exceptions to the local check. You might need this - * when you use a 'click-through' type of script (e.g. when - * http://www.example.com/path/click.php?http://otherpage.com/ would - * auto-redirect to otherpage.com and record a click in your logs) - * In most of the cases, this variable is unneeded and can be left empty - * destinationFrame = name of the destination frame (by default this is "_blank" to spawn a - * new window for each link clicked) - */ - - -var local = document.URL.substring(0,document.URL.lastIndexOf('/')); -var exception = ""; -var destinationFrame = "_blank"; - -function setOpenNewWindow(newWin) { - if (newWin) { - from = ""; to = destinationFrame; - } else { - from = destinationFrame; to = ""; - } - - for (var i=0; i<=(document.links.length-1); i++) { - if (document.links[i].target == from) { - - var href = document.links[i].href; - var isLocal = (href.indexOf(local) != -1); - if (isLocal && ((exception=="") || (href.indexOf(exception) != -1))) - isLocal = false; - if (!isLocal) - document.links[i].target = to; - } - } -} \ No newline at end of file diff --git a/skins/admin/bookmarklet/javascripts/templateEdit.js b/skins/admin/bookmarklet/javascripts/templateEdit.js deleted file mode 100644 index a99fbf6..0000000 --- a/skins/admin/bookmarklet/javascripts/templateEdit.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) - * Copyright (C) 2002-2012 The Nucleus Group - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * (see nucleus/documentation/index.html#license for more info) - * - * Javascript code to hide empty textareas when editing templates. - * - * @require compatibility.js - * - * $Id: templateEdit.js 1388 2009-07-18 06:31:28Z shizuki $ - */ - -var amountOfFields = 1; -var editText = 'empty field (click to edit)'; - -function hideUnused() { - while (document.getElementById('textarea' + amountOfFields)) - amountOfFields++; - amountOfFields--; - - for (var i=1;i<=amountOfFields;i++) { - var el = document.getElementById('textarea' + i); - - // hide textareas when empty, and add onclick event - // to make them visible again - if (el.value == '') { - el.style.display = 'none'; - var tdEl = document.getElementById('td' + i); - - var aHref = createElement('a'); - aHref.href = ''; - aHref.className = "expandLink"; - aHref.id = "expandLink" + i; - aHref.onclick = new Function("return makeVisible("+i+")"); - aHref.tabIndex = el.tabIndex; - aHref.title = editText; - aHref.appendChild(document.createTextNode(editText)); - - tdEl.appendChild(aHref); - - } - } - -} - -function setTemplateEditText(newText) { - editText = newText; -} - -function makeVisible(i) { - var textareaEl = document.getElementById('textarea' + i); - var expandEl = document.getElementById('expandLink' + i); - - textareaEl.style.display = 'block'; - expandEl.style.display = 'none'; - - textareaEl.focus(); - return false; -} - -window.onload = hideUnused; \ No newline at end of file -- 2.11.0