# HG changeset patch # User Julien Cristau # Date 1414057340 -7200 # Node ID 6718c03f89384a326b63d5cbfb4c0f8627330e75 # Parent 12f4f2509a384220fd709c3bc171ff04a9d409bb [web] Update jquery-treeview to the latest version Files copied from commit 61f230828ace1b54c2cc54bc549ece261b11842e of https://github.com/jzaefferer/jquery-treeview diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/changelog.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/data/jquery-treeview/changelog.md Thu Oct 23 11:42:20 2014 +0200 @@ -0,0 +1,36 @@ +1.4.1 +----- +* Fix for #2360 +* Added option cookieOptions: Passed through to $.cookie to set path, domain etc. +* Tested with jQuery 1.2.x and 1.4.3 +* Fixed combination of persist: "location" and prerendered: true + +1.4 +--- + +* Added changelog (this file) +* Fixed tree control to search only for anchors, allowing images or other elements inside the controls, while keeping the control usable with the keyboard +* Restructured folder layout: root contains plugin resources, lib contains script dependencies, demo contains demos and related files +* Added prerendered option: If set to true, assumes all hitarea divs and classes already rendered, speeding up initialization for big trees, but more obtrusive +* Added jquery.treeview.async.js for ajax-lazy-loading trees, see async.html demo +* Exposed $.fn.treeview.classes for custom classes if necessary +* Show treecontrol only when JavaScript is enabled +* Completely reworked themeing via CSS sprites, resulting in only two files per theme + * updated dotted, black, gray and red theme + * added famfamfam theme (no lines) +* Improved cookie persistence to allow multiple persisted trees per page via cookieId option +* Improved location persistence by making it case-insensitive +* Improved swapClass and replaceClass plugin implementations +* Added folder-closed.gif to filetree example + +1.3 +--- + +* Fixes for all outstanding bugs +* Added persistence features + * location based: click on a link in the treeview and reopen that link after the page loaded + * cookie based: save the state of the tree in a cookie on each click and load that on reload +* smoothed animations, fixing flickering in both IE and Opera +* Tested in Firefox 2, IE 6 & 7, Opera 9, Safari 3 +* Moved documentation to jQuery wiki +* Requires jQuery 1.2+ diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/ajax-loader.gif Binary file web/data/jquery-treeview/images/ajax-loader.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/file.gif Binary file web/data/jquery-treeview/images/file.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/folder-closed.gif Binary file web/data/jquery-treeview/images/folder-closed.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/folder.gif Binary file web/data/jquery-treeview/images/folder.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/minus.gif Binary file web/data/jquery-treeview/images/minus.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/plus.gif Binary file web/data/jquery-treeview/images/plus.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-black-line.gif Binary file web/data/jquery-treeview/images/treeview-black-line.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-black.gif Binary file web/data/jquery-treeview/images/treeview-black.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-default-line.gif Binary file web/data/jquery-treeview/images/treeview-default-line.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-default.gif Binary file web/data/jquery-treeview/images/treeview-default.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-famfamfam-line.gif Binary file web/data/jquery-treeview/images/treeview-famfamfam-line.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-famfamfam.gif Binary file web/data/jquery-treeview/images/treeview-famfamfam.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-gray-line.gif Binary file web/data/jquery-treeview/images/treeview-gray-line.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-gray.gif Binary file web/data/jquery-treeview/images/treeview-gray.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-red-line.gif Binary file web/data/jquery-treeview/images/treeview-red-line.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/images/treeview-red.gif Binary file web/data/jquery-treeview/images/treeview-red.gif has changed diff -r 12f4f2509a38 -r 6718c03f8938 web/data/jquery-treeview/jquery.treeview.async.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/data/jquery-treeview/jquery.treeview.async.js Thu Oct 23 11:42:20 2014 +0200 @@ -0,0 +1,108 @@ +/* + * Async Treeview 0.1 - Lazy-loading extension for Treeview + * + * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ + * + * Copyright 2010 Jörn Zaefferer + * Released under the MIT license: + * http://www.opensource.org/licenses/mit-license.php + */ + +;(function($) { + +function load(settings, root, child, container) { + function createNode(parent) { + var current = $("
  • ").attr("id", this.id || "").html("" + this.text + "").appendTo(parent); + if (this.classes) { + current.children("span").addClass(this.classes); + } + if (this.expanded) { + current.addClass("open"); + } + if (this.hasChildren || this.children && this.children.length) { + var branch = $("