OSDN Git Service

REMOVE: ブックマークレット用スキンから不要なJavaScriptファイルを削除
authorsakamocchi <o-takashi@sakamocchi.jp>
Fri, 18 May 2012 05:27:28 +0000 (14:27 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Fri, 18 May 2012 05:27:28 +0000 (14:27 +0900)
skins/admin/bookmarklet/javascripts/admin.js [deleted file]
skins/admin/bookmarklet/javascripts/compatibility.js [deleted file]
skins/admin/bookmarklet/javascripts/opennew.js [deleted file]
skins/admin/bookmarklet/javascripts/templateEdit.js [deleted file]

diff --git a/skins/admin/bookmarklet/javascripts/admin.js b/skins/admin/bookmarklet/javascripts/admin.js
deleted file mode 100644 (file)
index 7f637b1..0000000
+++ /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<cells.length;i++) {
-               cells[i].style.backgroundColor='whitesmoke';
-       }
-}
-function blurRow(row) {
-       var cells = row.cells;
-       if (!cells) return;
-       for (var i=0;i<cells.length;i++) {
-               cells[i].style.backgroundColor=oldCellColor;
-       }
-}
-function batchSelectAll(what) {
-       var i = 0;
-       var el;
-       while (el = document.getElementById('batch' + i)) {
-               el.checked = what?'checked':'';
-               i++;
-       }
-       return false;                                   
-}
-function selectCanLogin(flag) {
-       if (flag) {
-               window.document.memberedit.canlogin[0].checked=true;
-
-               // don't disable canlogin[0], otherwise the value won't be passed.
-//             window.document.memberedit.canlogin[0].disabled=true;
-               window.document.memberedit.canlogin[1].disabled=true;
-       } else {
-               window.document.memberedit.canlogin[0].disabled=false;
-               window.document.memberedit.canlogin[1].disabled=false;
-       }
-}
diff --git a/skins/admin/bookmarklet/javascripts/compatibility.js b/skins/admin/bookmarklet/javascripts/compatibility.js
deleted file mode 100644 (file)
index 5feeb5a..0000000
+++ /dev/null
@@ -1,33 +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 make sure that:
-  *  - javascript still works when sending pages as application/xhtml+xml
-  *  - this doesn't break functionality in IE
-  *
-  * How to use:
-  *            - Include this file
-  *            - Use createElement() instead of document.createElement()
-  *
-  * That's basically it :)
-  *
-  * $Id: compatibility.js 1388 2009-07-18 06:31:28Z shizuki $
-  */
-
-// to get the script working when page is sent as application/xhtml+xml
-function createElement(element) {
-  if (document.createElementNS) {
-       return document.createElementNS('http://www.w3.org/1999/xhtml', element);
-  }
-  if (document.createElement) {
-       return document.createElement(element);
-  }
-  return false;
-}
diff --git a/skins/admin/bookmarklet/javascripts/opennew.js b/skins/admin/bookmarklet/javascripts/opennew.js
deleted file mode 100644 (file)
index e6247c8..0000000
+++ /dev/null
@@ -1,62 +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)
- *
- * $Id: opennew.js 1388 2009-07-18 06:31:28Z shizuki $
- *
- * JavaScript to open non-local links in a new window.
- *
- * How to use:
- *  in the <head>...</head> section of your page, add the following line:
- *
- *  <script type="text/javascript" src="nucleus/javascript/opennew.js"></script>
- *
- *  Then, add the following to your <body> tag:
- *
- *  <body ... onload="setOpenNewWindow(true);">
- *
- *  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 (file)
index a99fbf6..0000000
+++ /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