From f73de8199d8fa4400bdb3a462e7d1d50fc6bdc3e Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Thu, 14 May 2015 17:35:47 -0700 Subject: [PATCH] LP#1312309: remove dtree.js -- unused for a while now Signed-off-by: Jeff Godin Signed-off-by: Ben Shum --- .gitignore | 1 - Open-ILS/web/opac/common/css/dtree.css | 34 --- Open-ILS/web/opac/common/js/dtree.js | 324 ------------------------- 3 files changed, 359 deletions(-) delete mode 100644 Open-ILS/web/opac/common/css/dtree.css delete mode 100644 Open-ILS/web/opac/common/js/dtree.js diff --git a/.gitignore b/.gitignore index 073c02dc1f..cbb45c3612 100644 --- a/.gitignore +++ b/.gitignore @@ -284,7 +284,6 @@ Open-ILS/xul/staff_client/chrome/content/OpenILS/util/JSON_v1.js Open-ILS/xul/staff_client/chrome/content/OpenILS/util/RemoteRequest.js Open-ILS/xul/staff_client/chrome/content/OpenILS/util/added_content.js Open-ILS/xul/staff_client/chrome/content/OpenILS/util/config.js -Open-ILS/xul/staff_client/chrome/content/OpenILS/util/dtree.js Open-ILS/xul/staff_client/chrome/content/OpenILS/util/fm_table.js Open-ILS/xul/staff_client/chrome/content/OpenILS/util/fm_table_conf.js Open-ILS/xul/staff_client/chrome/content/OpenILS/util/fmgen.js diff --git a/Open-ILS/web/opac/common/css/dtree.css b/Open-ILS/web/opac/common/css/dtree.css deleted file mode 100644 index b201c2fd60..0000000000 --- a/Open-ILS/web/opac/common/css/dtree.css +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------| -| dTree 2.05 | www.destroydrop.com/javascript/tree/ | -|---------------------------------------------------| -| Copyright (c) 2002-2003 Geir Landrö | -|--------------------------------------------------*/ - -.dtree { - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size: 11px; - color: #666; - white-space: nowrap; -} -.dtree img { - border: 0px; - vertical-align: middle; -} -.dtree a { - color: #333; - text-decoration: none; -} -.dtree a.node, .dtree a.nodeSel { - white-space: nowrap; - padding: 1px 2px 1px 2px; -} -.dtree a.node:hover, .dtree a.nodeSel:hover { - color: #333; - text-decoration: underline; -} -.dtree a.nodeSel { - background-color: #c0d2ec; -} -.dtree .clip { - overflow: hidden; -} \ No newline at end of file diff --git a/Open-ILS/web/opac/common/js/dtree.js b/Open-ILS/web/opac/common/js/dtree.js deleted file mode 100644 index 974f5deb30..0000000000 --- a/Open-ILS/web/opac/common/js/dtree.js +++ /dev/null @@ -1,324 +0,0 @@ -/*--------------------------------------------------| -| dTree 2.05 | www.destroydrop.com/javascript/tree/ | -|---------------------------------------------------| -| Copyright (c) 2002-2003 Geir Landrö | -| | -| This script can be used freely as long as all | -| copyright messages are intact. | -| | -| Updated: 17.04.2003 | -|--------------------------------------------------*/ - -function Node(id, pid, name, url, title, target, icon, iconOpen, open) { - this.id = id; - this.pid = pid; - this.name = name; - this.url = url; - this.title = title; - this.target = target; - this.icon = icon; - this.iconOpen = iconOpen; - this._io = open || false; - this._is = false; - this._ls = false; - this._hc = false; - this._ai = 0; - this._p; -}; - -function dTree(objName) { - this.config = { - target : null, - folderLinks : true, - useSelection : true, - useCookies : true, - useLines : true, - useIcons : true, - useStatusText : false, - closeSameLevel : false, - inOrder : false - } - this.icon = { - root : '../../../images/orgtree/base.gif', - folder : '../../../images/orgtree/folder.gif', - folderOpen : '../../../images/orgtree/folderopen.gif', - node : '../../../images/orgtree/page.gif', - empty : '../../../images/orgtree/empty.gif', - line : '../../../images/orgtree/line.gif', - join : '../../../images/orgtree/join.gif', - joinBottom : '../../../images/orgtree/joinbottom.gif', - plus : '../../../images/orgtree/plus.gif', - plusBottom : '../../../images/orgtree/plusbottom.gif', - minus : '../../../images/orgtree/minus.gif', - minusBottom : '../../../images/orgtree/minusbottom.gif', - nlPlus : '../../../images/orgtree/nolines_plus.gif', - nlMinus : '../../../images/orgtree/nolines_minus.gif' - }; - this.obj = objName; - this.aNodes = []; - this.aIndent = []; - this.root = new Node(-1); - this.selectedNode = null; - this.selectedFound = false; - this.completed = false; -}; - -dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) { - this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open); -}; - -dTree.prototype.openAll = function() { - this.oAll(true); -}; -dTree.prototype.closeAll = function() { - this.oAll(false); -}; - -dTree.prototype.toString = function() { - var str = '
\n'; - if (document.getElementById) { - if (this.config.useCookies) this.selectedNode = this.getSelected(); - str += this.addNode(this.root); - } else str += 'Browser not supported.'; - str += '
'; - if (!this.selectedFound) this.selectedNode = null; - this.completed = true; - return str; -}; - -dTree.prototype.addNode = function(pNode) { - var str = ''; - var n=0; - if (this.config.inOrder) n = pNode._ai; - for (n; n'; - } - if (node.url) { - str += ''; - str += node.name; - if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += ''; - str += ''; - if (node._hc) { - str += '
'; - str += this.addNode(node); - str += '
'; - } - this.aIndent.pop(); - return str; -}; - -dTree.prototype.indent = function(node, nodeId) { - var str = ''; - if (this.root.id != node.pid) { - for (var n=0; n'; - (node._ls) ? this.aIndent.push(0) : this.aIndent.push(1); - if (node._hc) { - str += ''; - } else str += ''; - } - return str; -}; - -dTree.prototype.setCS = function(node) { - var lastId; - for (var n=0; n