From 33e4ce923d60d3bd13f4c3d5d807d753ca76ba8f Mon Sep 17 00:00:00 2001 From: Claire Revillet Date: Thu, 16 May 2013 21:39:34 +0000 Subject: - rewrite main page for Mga3 - add Mga3 MCC doc (en, et, fr) and installer doc (en, et, de, fr, nl, ru, uk) --- .../jquery/treeview/jquery.treeview.async.js | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 installer/3/en/common/jquery/treeview/jquery.treeview.async.js (limited to 'installer/3/en/common/jquery/treeview/jquery.treeview.async.js') diff --git a/installer/3/en/common/jquery/treeview/jquery.treeview.async.js b/installer/3/en/common/jquery/treeview/jquery.treeview.async.js new file mode 100644 index 00000000..2597dde1 --- /dev/null +++ b/installer/3/en/common/jquery/treeview/jquery.treeview.async.js @@ -0,0 +1,72 @@ +/* + * Async Treeview 0.1 - Lazy-loading extension for Treeview + * + * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ + * + * Copyright (c) 2007 Jörn Zaefferer + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + * Revision: $Id$ + * + */ + +;(function($) { + +function load(settings, root, child, container) { + $.getJSON(settings.url, {root: root}, function(response) { + 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 = $("