diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e85b08223..848d5b383 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.5.11 - - Replaced Cool Menus nav with a YUI nav, which works and looks better. + - Replaced Cool Menus nav with a YUI Menu, which works and looks better. + - Replaced dtree javascript with YUI TreeView. - fix: widget dialogues weren't opening correctly inside a widgetized view of a widget - fix: snippets were exporting as index.html or such. pass them through diff --git a/docs/upgrades/packages-7.5.11/root_import_navigation_tree-navigation.wgpkg b/docs/upgrades/packages-7.5.11/root_import_navigation_tree-navigation.wgpkg new file mode 100644 index 000000000..7fc89c604 Binary files /dev/null and b/docs/upgrades/packages-7.5.11/root_import_navigation_tree-navigation.wgpkg differ diff --git a/www/extras/Navigation/dtree/api.html b/www/extras/Navigation/dtree/api.html deleted file mode 100644 index 3686a8021..000000000 --- a/www/extras/Navigation/dtree/api.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - - Destroydrop » Javascripts » Tree » Api - - - - - - - - -
- -
- - - - -
- -
- - -

Overview

-
-
- - - -
- - -

Functions

-
-
- - -

add()

-

Adds a node to the tree.
Can only be called before the tree is drawn.

-

id, pid and name are required.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
idNumberUnique identity number.
pidNumberNumber refering to the parent node. The value for the root node has to be -1.
nameStringText label for the node.
urlStringUrl for the node.
titleStringTitle for the node.
targetStringTarget for the node.
iconStringImage file to use as the icon. Uses default if not specified.
iconOpenStringImage file to use as the open icon. Uses default if not specified.
openBooleanIs the node open.
-
- - -

Example

-

mytree.add(1, 0, 'My node', 'node.html', 'node title', 'mainframe', 'img/musicfolder.gif');

-
- - -

openAll()

-

Opens all the nodes.
Can be called before and after the tree is drawn.

-

Example

-

mytree.openAll();

-
- - - -

closeAll()

-

Closes all the nodes.
Can be called before and after the tree is drawn.

-

Example

-

mytree.closeAll();

-
- - - -

openTo()

-

Opens the tree to a certain node and can also select the node.
- Can only be called after the tree is drawn.

- -

Parameters

- - - - - - - - - - - - - - - - -
NameTypeDescription
idNumberIdentity number for the node.
selectBooleanShould the node be selected.
- -

Example

-

mytree.openTo(4, true);

- -
- - -

Configuration

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableTypeDefaultDescription
targetStringtrueTarget for all the nodes.
folderLinksBooleantrueShould folders be links.
useSelectionBooleantrueNodes can be selected(highlighted).
useCookiesBooleantrueThe tree uses cookies to rember it's state.
useLinesBooleantrueTree is drawn with lines.
useIconsBooleantrueTree is drawn with icons.
useStatusTextBooleanfalseDisplays node names in the statusbar instead of the url.
closeSameLevelBooleanfalseOnly one node within a parent can be expanded at the same time. openAll() and closeAll() functions do not work when this is enabled.
inOrderBooleanfalseIf parent nodes are always added before children, setting this to true speeds up the tree.
- -

Example

-

mytree.config.target = "mytarget";

- -
- -
- -
- - - - -
- -
- - - - - \ No newline at end of file diff --git a/www/extras/Navigation/dtree/dtree.css b/www/extras/Navigation/dtree/dtree.css deleted file mode 100644 index b201c2fd6..000000000 --- a/www/extras/Navigation/dtree/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/www/extras/Navigation/dtree/dtree.js b/www/extras/Navigation/dtree/dtree.js deleted file mode 100644 index 7ba081729..000000000 --- a/www/extras/Navigation/dtree/dtree.js +++ /dev/null @@ -1,696 +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 | - -|--------------------------------------------------*/ - - - -// Node object - -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; - -}; - - - -// Tree object - -function dTree(objName, path) { - - this.config = { - - target : null, - - folderLinks : true, - - useSelection : true, - - useCookies : true, - - useLines : true, - - useIcons : true, - - useStatusText : false, - - closeSameLevel : false, - - inOrder : false - - } - - this.icon = { - - root : _dtree_url + 'img/base.gif', // LK, 20040222: Added _dtree_url - - folder : _dtree_url + 'img/folder.gif', // LK, 20040222: Added _dtree_url - - folderOpen : _dtree_url + 'img/folderopen.gif', // LK, 20040222: Added _dtree_url - - node : _dtree_url + 'img/page.gif', // LK, 20040222: Added _dtree_url - - empty : _dtree_url + 'img/empty.gif',// LK, 20040222: Added _dtree_url - - line : _dtree_url + 'img/line.gif',// LK, 20040222: Added _dtree_url - - join : _dtree_url + 'img/join.gif',// LK, 20040222: Added _dtree_url - - joinBottom : _dtree_url + 'img/joinbottom.gif',// LK, 20040222: Added _dtree_url - - plus : _dtree_url + 'img/plus.gif',// LK, 20040222: Added _dtree_url - - plusBottom : _dtree_url + 'img/plusbottom.gif',// LK, 20040222: Added _dtree_url - - minus : _dtree_url + 'img/minus.gif',// LK, 20040222: Added _dtree_url - - minusBottom : _dtree_url + 'img/minusbottom.gif',// LK, 20040222: Added _dtree_url - - nlPlus : _dtree_url + 'img/nolines_plus.gif',// LK, 20040222: Added _dtree_url - - nlMinus : _dtree_url + 'img/nolines_minus.gif'// LK, 20040222: Added _dtree_url - - }; - - this.obj = objName; - - this.path = path; - - this.aNodes = []; - - this.aIndent = []; - - this.root = new Node(-99); // LK, 20040222: Changes -1 to -99 because pageId -1 is an existing - // (reserved) page in WebGUI - this.selectedNode = null; - - this.selectedFound = false; - - this.completed = false; - -}; - - - -// Adds a new node to the node array - -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); - -}; - - - -// Open/close all nodes - -dTree.prototype.openAll = function() { - - this.oAll(true); - -}; - -dTree.prototype.closeAll = function() { - - this.oAll(false); - -}; - - - -// Outputs the tree to the page - -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; - -}; - - - -// Creates the tree structure - -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; - -}; - - - -// Adds the empty and line icons - -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; - -}; - - - -// Checks if a node has any children and if it is the last sibling - -dTree.prototype.setCS = function(node) { - - var lastId; - - for (var n=0; n - - - - - Destroydrop » Javascripts » Tree - - - - - - - - -

Destroydrop » Javascripts » Tree

- -

Example

- -
- -

open all | close all

- - - -
- -

©2002-2003 Geir Landrö

- - - - \ No newline at end of file diff --git a/www/extras/Navigation/dtree/img/base.gif b/www/extras/Navigation/dtree/img/base.gif deleted file mode 100644 index 9ac0b117b..000000000 Binary files a/www/extras/Navigation/dtree/img/base.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/cd.gif b/www/extras/Navigation/dtree/img/cd.gif deleted file mode 100644 index 750381940..000000000 Binary files a/www/extras/Navigation/dtree/img/cd.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/empty.gif b/www/extras/Navigation/dtree/img/empty.gif deleted file mode 100644 index b5cf52378..000000000 Binary files a/www/extras/Navigation/dtree/img/empty.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/folder.gif b/www/extras/Navigation/dtree/img/folder.gif deleted file mode 100644 index eb129763d..000000000 Binary files a/www/extras/Navigation/dtree/img/folder.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/folderopen.gif b/www/extras/Navigation/dtree/img/folderopen.gif deleted file mode 100644 index c5c31102d..000000000 Binary files a/www/extras/Navigation/dtree/img/folderopen.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/globe.gif b/www/extras/Navigation/dtree/img/globe.gif deleted file mode 100644 index 57123d0e6..000000000 Binary files a/www/extras/Navigation/dtree/img/globe.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/imgfolder.gif b/www/extras/Navigation/dtree/img/imgfolder.gif deleted file mode 100644 index e6d880347..000000000 Binary files a/www/extras/Navigation/dtree/img/imgfolder.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/join.gif b/www/extras/Navigation/dtree/img/join.gif deleted file mode 100644 index 34dd47610..000000000 Binary files a/www/extras/Navigation/dtree/img/join.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/joinbottom.gif b/www/extras/Navigation/dtree/img/joinbottom.gif deleted file mode 100644 index 48b81c80a..000000000 Binary files a/www/extras/Navigation/dtree/img/joinbottom.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/line.gif b/www/extras/Navigation/dtree/img/line.gif deleted file mode 100644 index 1a259eea0..000000000 Binary files a/www/extras/Navigation/dtree/img/line.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/minus.gif b/www/extras/Navigation/dtree/img/minus.gif deleted file mode 100644 index 3d212a97a..000000000 Binary files a/www/extras/Navigation/dtree/img/minus.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/minusbottom.gif b/www/extras/Navigation/dtree/img/minusbottom.gif deleted file mode 100644 index dc3198be2..000000000 Binary files a/www/extras/Navigation/dtree/img/minusbottom.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/musicfolder.gif b/www/extras/Navigation/dtree/img/musicfolder.gif deleted file mode 100644 index f620789fe..000000000 Binary files a/www/extras/Navigation/dtree/img/musicfolder.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/nolines_minus.gif b/www/extras/Navigation/dtree/img/nolines_minus.gif deleted file mode 100644 index 2592ac20f..000000000 Binary files a/www/extras/Navigation/dtree/img/nolines_minus.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/nolines_plus.gif b/www/extras/Navigation/dtree/img/nolines_plus.gif deleted file mode 100644 index f258ce211..000000000 Binary files a/www/extras/Navigation/dtree/img/nolines_plus.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/page.gif b/www/extras/Navigation/dtree/img/page.gif deleted file mode 100644 index 42d7318c5..000000000 Binary files a/www/extras/Navigation/dtree/img/page.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/plus.gif b/www/extras/Navigation/dtree/img/plus.gif deleted file mode 100644 index b2c997233..000000000 Binary files a/www/extras/Navigation/dtree/img/plus.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/plusbottom.gif b/www/extras/Navigation/dtree/img/plusbottom.gif deleted file mode 100644 index b5671d891..000000000 Binary files a/www/extras/Navigation/dtree/img/plusbottom.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/question.gif b/www/extras/Navigation/dtree/img/question.gif deleted file mode 100644 index dd4e68507..000000000 Binary files a/www/extras/Navigation/dtree/img/question.gif and /dev/null differ diff --git a/www/extras/Navigation/dtree/img/trash.gif b/www/extras/Navigation/dtree/img/trash.gif deleted file mode 100644 index cfa0f000e..000000000 Binary files a/www/extras/Navigation/dtree/img/trash.gif and /dev/null differ