OSDN Git Service

preparation for 4.0 trunk: move whole scripts just under trunk directory
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / javascript / templateEdit.js
diff --git a/utf8/nucleus/javascript/templateEdit.js b/utf8/nucleus/javascript/templateEdit.js
deleted file mode 100755 (executable)
index 2ebfde0..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
-  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) 
-  * Copyright (C) 2002-2011 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$
-  * $NucleusJP: templateEdit.js,v 1.4 2006/07/12 07:11:47 kimitake Exp $
-  */
-
-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