Js Update
@ -29,7 +29,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
->appendStylesheet($pathStyle.'/main.css', 'all');
|
||||
|
||||
$view->headScript()
|
||||
->appendFile('/libs/html5shiv.js', 'text/javascript', array('conditional' => 'lt IE 9'))
|
||||
->appendFile('/libs/html5shiv.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
|
||||
->appendFile('/libs/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
|
||||
->appendFile('/libs/jquery-2.1.1.min.js', 'text/javascript')
|
||||
->appendFile('/libs/bootstrap-3.2.0/js/bootstrap.min.js', 'text/javascript')
|
||||
|
@ -7,13 +7,13 @@ class FieldsController extends Zend_Controller_Action
|
||||
public function indexAction()
|
||||
{
|
||||
$this->view->headLink()
|
||||
->appendStylesheet('/libs/tree-3.0.2/themes/default/style.css', 'all')
|
||||
->appendStylesheet('/libs/tree-3.0.3/themes/default/style.css', 'all')
|
||||
->appendStylesheet('/libs/slider/css/bootstrap-slider.min.css', 'all')
|
||||
->appendStylesheet('/libs/daterangepicker/daterangepicker-bs3.css', 'all');
|
||||
|
||||
$this->view->headScript()
|
||||
->appendFile('/libs/moment.min.js', 'text/javascript')
|
||||
->appendFile('/libs/tree-3.0.2/jstree.min.js', 'text/javascript')
|
||||
->appendFile('/libs/tree-3.0.3/jstree.min.js', 'text/javascript')
|
||||
->appendFile('/libs/slider/bootstrap-slider.min.js')
|
||||
->appendFile('/libs/daterangepicker/daterangepicker.js')
|
||||
->appendFile('/themes/default/scripts/scripts.js', 'text/javascript')
|
||||
|
8
public/libs/html5shiv.js
vendored
@ -1,8 +0,0 @@
|
||||
/*
|
||||
HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
|
||||
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</style>";
|
||||
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
|
||||
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);
|
||||
if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
|
4
public/libs/html5shiv.min.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/**
|
||||
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document);
|
9
public/libs/respond.min.js
vendored
@ -1,6 +1,5 @@
|
||||
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
|
||||
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
|
||||
window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document);
|
||||
/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
|
||||
* Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
|
||||
* */
|
||||
|
||||
/*! Respond.js v1.3.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
||||
(function(a){"use strict";function x(){u(!0)}var b={};if(a.respond=b,b.update=function(){},b.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,!b.mediaQueriesSupported){var q,r,t,c=a.document,d=c.documentElement,e=[],f=[],g=[],h={},i=30,j=c.getElementsByTagName("head")[0]||d,k=c.getElementsByTagName("base")[0],l=j.getElementsByTagName("link"),m=[],n=function(){for(var b=0;l.length>b;b++){var c=l[b],d=c.href,e=c.media,f=c.rel&&"stylesheet"===c.rel.toLowerCase();d&&f&&!h[d]&&(c.styleSheet&&c.styleSheet.rawCssText?(p(c.styleSheet.rawCssText,d,e),h[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!k||d.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&m.push({href:d,media:e}))}o()},o=function(){if(m.length){var b=m.shift();v(b.href,function(c){p(c,b.href,b.media),h[b.href]=!0,a.setTimeout(function(){o()},0)})}},p=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),g=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},i=!g&&c;b.length&&(b+="/"),i&&(g=1);for(var j=0;g>j;j++){var k,l,m,n;i?(k=c,f.push(h(a))):(k=d[j].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],e.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:f.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},s=function(){var a,b=c.createElement("div"),e=c.body,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",e||(e=f=c.createElement("body"),e.style.background="none"),e.appendChild(b),d.insertBefore(e,d.firstChild),a=b.offsetWidth,f?d.removeChild(e):e.removeChild(b),a=t=parseFloat(a)},u=function(b){var h="clientWidth",k=d[h],m="CSS1Compat"===c.compatMode&&k||c.body[h]||k,n={},o=l[l.length-1],p=(new Date).getTime();if(b&&q&&i>p-q)return a.clearTimeout(r),r=a.setTimeout(u,i),void 0;q=p;for(var v in e)if(e.hasOwnProperty(v)){var w=e[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?t||s():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?t||s():1)),w.hasquery&&(z&&A||!(z||m>=x)||!(A||y>=m))||(n[w.media]||(n[w.media]=[]),n[w.media].push(f[w.rules]))}for(var C in g)g.hasOwnProperty(C)&&g[C]&&g[C].parentNode===j&&j.removeChild(g[C]);for(var D in n)if(n.hasOwnProperty(D)){var E=c.createElement("style"),F=n[D].join("\n");E.type="text/css",E.media=D,j.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(c.createTextNode(F)),g.push(E)}},v=function(a,b){var c=w();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},w=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();n(),b.update=n,a.addEventListener?a.addEventListener("resize",x,!1):a.attachEvent&&a.attachEvent("onresize",x)}})(this);
|
||||
!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);
|
5
public/libs/tree-3.0.2/jstree.min.js
vendored
@ -13,7 +13,7 @@
|
||||
}(function ($, undefined) {
|
||||
"use strict";
|
||||
/*!
|
||||
* jsTree 3.0.2
|
||||
* jsTree 3.0.3
|
||||
* http://jstree.com/
|
||||
*
|
||||
* Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
|
||||
@ -67,7 +67,7 @@
|
||||
* specifies the jstree version in use
|
||||
* @name $.jstree.version
|
||||
*/
|
||||
version : '3.0.2',
|
||||
version : '3.0.3',
|
||||
/**
|
||||
* holds all the default options used when creating new instances
|
||||
* @name $.jstree.defaults
|
||||
@ -85,7 +85,7 @@
|
||||
*/
|
||||
plugins : {},
|
||||
path : src && src.indexOf('/') !== -1 ? src.replace(/\/[^\/]+$/,'') : '',
|
||||
idregex : /[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}]/g
|
||||
idregex : /[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%]/g
|
||||
};
|
||||
/**
|
||||
* creates a jstree instance
|
||||
@ -127,7 +127,9 @@
|
||||
icons : false
|
||||
},
|
||||
selected : [],
|
||||
last_error : {}
|
||||
last_error : {},
|
||||
working : false,
|
||||
worker_queue : []
|
||||
}
|
||||
};
|
||||
};
|
||||
@ -316,7 +318,7 @@
|
||||
* $('#tree').jstree({
|
||||
* 'core' : {
|
||||
* 'strings' : {
|
||||
* 'Loading...' : 'Please wait ...'
|
||||
* 'Loading ...' : 'Please wait ...'
|
||||
* }
|
||||
* }
|
||||
* });
|
||||
@ -414,7 +416,12 @@
|
||||
* if left as `true` web workers will be used to parse incoming JSON data where possible, so that the UI will not be blocked by large requests. Workers are however about 30% slower. Defaults to `true`
|
||||
* @name $.jstree.defaults.core.worker
|
||||
*/
|
||||
worker : true
|
||||
worker : true,
|
||||
/**
|
||||
* Force node text to plain text (and escape HTML). Defaults to `false`
|
||||
* @name $.jstree.defaults.core.force_text
|
||||
*/
|
||||
force_text : false
|
||||
};
|
||||
$.jstree.core.prototype = {
|
||||
/**
|
||||
@ -981,7 +988,7 @@
|
||||
* loads a node (fetches its children using the `core.data` setting). Multiple nodes can be passed to by using an array.
|
||||
* @name load_node(obj [, callback])
|
||||
* @param {mixed} obj
|
||||
* @param {function} callback a function to be executed once loading is conplete, the function is executed in the instance's scope and receives two arguments - the node and a boolean status
|
||||
* @param {function} callback a function to be executed once loading is complete, the function is executed in the instance's scope and receives two arguments - the node and a boolean status
|
||||
* @return {Boolean}
|
||||
* @trigger load_node.jstree
|
||||
*/
|
||||
@ -1060,7 +1067,7 @@
|
||||
}
|
||||
}
|
||||
if(r) {
|
||||
if(!callback.done) {
|
||||
if(callback && !callback.done) {
|
||||
callback.call(this, nodes);
|
||||
callback.done = true;
|
||||
}
|
||||
@ -1475,6 +1482,9 @@
|
||||
dpc = dpc.concat(m[tmp].children_d);
|
||||
}
|
||||
}
|
||||
for(i = 0, j = p.parents.length; i < j; i++) {
|
||||
m[p.parents[i]].children_d = m[p.parents[i]].children_d.concat(dpc);
|
||||
}
|
||||
// ?) three_state selection - p.state.selected && t - (if three_state foreach(dat => ch) -> foreach(parents) if(parent.selected) child.selected = true;
|
||||
rslt = {
|
||||
'cnt' : t_cnt,
|
||||
@ -1564,8 +1574,20 @@
|
||||
);
|
||||
}
|
||||
w = new window.Worker(this._wrk);
|
||||
w.onmessage = $.proxy(function (e) { rslt.call(this, e.data, true); }, this);
|
||||
w.postMessage(args);
|
||||
w.onmessage = $.proxy(function (e) {
|
||||
rslt.call(this, e.data, true);
|
||||
this._data.core.working = false;
|
||||
if(this._data.core.worker_queue.length) {
|
||||
this._append_json_data.apply(this, this._data.core.worker_queue.shift());
|
||||
}
|
||||
}, this);
|
||||
if(!this._data.core.working) {
|
||||
this._data.core.working = true;
|
||||
w.postMessage(args);
|
||||
}
|
||||
else {
|
||||
this._data.core.worker_queue.push([dom, data, cb]);
|
||||
}
|
||||
}
|
||||
catch(e) {
|
||||
rslt.call(this, func(args), false);
|
||||
@ -1631,7 +1653,7 @@
|
||||
tmp.children("ins, i, ul").remove();
|
||||
tmp = tmp.html();
|
||||
tmp = $('<div />').html(tmp);
|
||||
data.text = tmp.html();
|
||||
data.text = this.settings.core.force_text ? tmp.text() : tmp.html();
|
||||
tmp = d.data();
|
||||
data.data = tmp ? $.extend(true, {}, tmp) : null;
|
||||
data.state.opened = d.hasClass('jstree-open');
|
||||
@ -2049,9 +2071,13 @@
|
||||
node.childNodes[1].childNodes[0].className += ' jstree-themeicon-custom';
|
||||
}
|
||||
}
|
||||
//node.childNodes[1].appendChild(d.createTextNode(obj.text));
|
||||
node.childNodes[1].innerHTML += obj.text;
|
||||
// if(obj.data) { $.data(node, obj.data); } // always work with node's data, no need to touch jquery store
|
||||
|
||||
if(this.settings.core.force_text) {
|
||||
node.childNodes[1].appendChild(d.createTextNode(obj.text));
|
||||
}
|
||||
else {
|
||||
node.childNodes[1].innerHTML += obj.text;
|
||||
}
|
||||
|
||||
if(deep && obj.children.length && obj.state.opened && obj.state.loaded) {
|
||||
k = d.createElement('UL');
|
||||
@ -2717,7 +2743,7 @@
|
||||
* @return {Array}
|
||||
*/
|
||||
get_selected : function (full) {
|
||||
return full ? $.map(this._data.core.selected, $.proxy(function (i) { return this.get_node(i); }, this)) : this._data.core.selected;
|
||||
return full ? $.map(this._data.core.selected, $.proxy(function (i) { return this.get_node(i); }, this)) : this._data.core.selected.slice();
|
||||
},
|
||||
/**
|
||||
* get an array of all top level selected nodes (ignoring children of selected nodes)
|
||||
@ -2915,10 +2941,12 @@
|
||||
* refreshes the tree - all nodes are reloaded with calls to `load_node`.
|
||||
* @name refresh()
|
||||
* @param {Boolean} skip_loading an option to skip showing the loading indicator
|
||||
* @param {Mixed} forget_state if set to `true` state will not be reapplied, if set to a function (receiving the current state as argument) the result of that function will be used as state
|
||||
* @trigger refresh.jstree
|
||||
*/
|
||||
refresh : function (skip_loading) {
|
||||
this._data.core.state = this.get_state();
|
||||
refresh : function (skip_loading, forget_state) {
|
||||
this._data.core.state = forget_state === true ? {} : this.get_state();
|
||||
if(forget_state && $.isFunction(forget_state)) { this._data.core.state = forget_state.call(this, this._data.core.state); }
|
||||
this._cnt = 0;
|
||||
this._model.data = {
|
||||
'#' : {
|
||||
@ -2958,11 +2986,12 @@
|
||||
refresh_node : function (obj) {
|
||||
obj = this.get_node(obj);
|
||||
if(!obj || obj.id === '#') { return false; }
|
||||
var opened = [], s = this._data.core.selected.concat([]);
|
||||
var opened = [], to_load = [], s = this._data.core.selected.concat([]);
|
||||
to_load.push(obj.id);
|
||||
if(obj.state.opened === true) { opened.push(obj.id); }
|
||||
this.get_node(obj, true).find('.jstree-open').each(function() { opened.push(this.id); });
|
||||
this._load_nodes(opened, $.proxy(function (nodes) {
|
||||
this.open_node(nodes, false, 0);
|
||||
this._load_nodes(to_load, $.proxy(function (nodes) {
|
||||
this.open_node(opened, false, 0);
|
||||
this.select_node(this._data.core.selected);
|
||||
/**
|
||||
* triggered when a node is refreshed
|
||||
@ -3030,7 +3059,7 @@
|
||||
* @trigger set_text.jstree
|
||||
*/
|
||||
set_text : function (obj, val) {
|
||||
var t1, t2, dom, tmp;
|
||||
var t1, t2;
|
||||
if($.isArray(obj)) {
|
||||
obj = obj.slice();
|
||||
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
||||
@ -3041,20 +3070,17 @@
|
||||
obj = this.get_node(obj);
|
||||
if(!obj || obj.id === '#') { return false; }
|
||||
obj.text = val;
|
||||
dom = this.get_node(obj, true);
|
||||
if(dom.length) {
|
||||
dom = dom.children(".jstree-anchor:eq(0)");
|
||||
tmp = dom.children("I").clone();
|
||||
dom.html(val).prepend(tmp);
|
||||
/**
|
||||
* triggered when a node text value is changed
|
||||
* @event
|
||||
* @name set_text.jstree
|
||||
* @param {Object} obj
|
||||
* @param {String} text the new value
|
||||
*/
|
||||
this.trigger('set_text',{ "obj" : obj, "text" : val });
|
||||
if(this.get_node(obj, true).length) {
|
||||
this.redraw_node(obj.id);
|
||||
}
|
||||
/**
|
||||
* triggered when a node text value is changed
|
||||
* @event
|
||||
* @name set_text.jstree
|
||||
* @param {Object} obj
|
||||
* @param {String} text the new value
|
||||
*/
|
||||
this.trigger('set_text',{ "obj" : obj, "text" : val });
|
||||
return true;
|
||||
},
|
||||
/**
|
||||
@ -3706,13 +3732,16 @@
|
||||
* @param {String} default_text the text to populate the input with (if omitted the node text value is used)
|
||||
*/
|
||||
edit : function (obj, default_text) {
|
||||
obj = this._open_to(obj);
|
||||
if(!obj || !obj.length) { return false; }
|
||||
obj = this.get_node(obj);
|
||||
if(!obj) { return false; }
|
||||
if(this.settings.core.check_callback === false) {
|
||||
this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_07', 'reason' : 'Could not edit node because of check_callback' };
|
||||
this.settings.core.error.call(this, this._data.core.last_error);
|
||||
return false;
|
||||
}
|
||||
default_text = typeof default_text === 'string' ? default_text : obj.text;
|
||||
this.set_text(obj, "");
|
||||
obj = this._open_to(obj);
|
||||
|
||||
var rtl = this._data.core.rtl,
|
||||
w = this.element.width(),
|
||||
@ -3724,7 +3753,7 @@
|
||||
w1 = oi.width() * oi.length,
|
||||
w2 = ai.width() * ai.length,
|
||||
*/
|
||||
t = typeof default_text === 'string' ? default_text : this.get_text(obj),
|
||||
t = default_text,
|
||||
h1 = $("<"+"div />", { css : { "position" : "absolute", "top" : "-200px", "left" : (rtl ? "0px" : "-1000px"), "visibility" : "hidden" } }).appendTo("body"),
|
||||
h2 = $("<"+"input />", {
|
||||
"value" : t,
|
||||
@ -3747,7 +3776,7 @@
|
||||
s.replaceWith(a);
|
||||
s.remove();
|
||||
this.set_text(obj, t);
|
||||
if(this.rename_node(obj, v) === false) {
|
||||
if(this.rename_node(obj, $('<div></div>').text(v)[this.settings.core.force_text ? 'text' : 'html']()) === false) {
|
||||
this.set_text(obj, t); // move this up? and fix #483
|
||||
}
|
||||
}, this),
|
||||
@ -3783,7 +3812,6 @@
|
||||
letterSpacing : a.css('letterSpacing') || '',
|
||||
wordSpacing : a.css('wordSpacing') || ''
|
||||
};
|
||||
this.set_text(obj, "");
|
||||
s.attr('class', a.attr('class')).append(a.contents().clone()).append(h2);
|
||||
a.replaceWith(s);
|
||||
h1.css(fn);
|
||||
@ -4072,12 +4100,19 @@
|
||||
* @name $.jstree.defaults.checkbox.cascade
|
||||
* @plugin checkbox
|
||||
*/
|
||||
cascade : ''
|
||||
cascade : '',
|
||||
/**
|
||||
* This setting controls if checkbox are bound to the general tree selection or to an internal array maintained by the checkbox plugin. Defaults to `true`, only set to `false` if you know exactly what you are doing.
|
||||
* @name $.jstree.defaults.checkbox.tie_selection
|
||||
* @plugin checkbox
|
||||
*/
|
||||
tie_selection : true
|
||||
};
|
||||
$.jstree.plugins.checkbox = function (options, parent) {
|
||||
this.bind = function () {
|
||||
parent.bind.call(this);
|
||||
this._data.checkbox.uto = false;
|
||||
this._data.checkbox.selected = [];
|
||||
if(this.settings.checkbox.three_state) {
|
||||
this.settings.checkbox.cascade = 'up+down+undetermined';
|
||||
}
|
||||
@ -4087,18 +4122,36 @@
|
||||
if(!this.settings.checkbox.keep_selected_style) {
|
||||
this.element.addClass('jstree-checkbox-no-clicked');
|
||||
}
|
||||
if(this.settings.checkbox.tie_selection) {
|
||||
this.element.addClass('jstree-checkbox-selection');
|
||||
}
|
||||
}, this))
|
||||
.on("loading.jstree", $.proxy(function () {
|
||||
this[ this._data.checkbox.visible ? 'show_checkboxes' : 'hide_checkboxes' ]();
|
||||
}, this));
|
||||
if(this.settings.checkbox.cascade.indexOf('undetermined') !== -1) {
|
||||
this.element
|
||||
.on('changed.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree', $.proxy(function () {
|
||||
.on('changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree', $.proxy(function () {
|
||||
// only if undetermined is in setting
|
||||
if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
|
||||
this._data.checkbox.uto = setTimeout($.proxy(this._undetermined, this), 50);
|
||||
}, this));
|
||||
}
|
||||
if(!this.settings.checkbox.tie_selection) {
|
||||
this.element
|
||||
.on('model.jstree', $.proxy(function (e, data) {
|
||||
var m = this._model.data,
|
||||
p = m[data.parent],
|
||||
dpc = data.nodes,
|
||||
i, j;
|
||||
for(i = 0, j = dpc.length; i < j; i++) {
|
||||
m[dpc[i]].state.checked = (m[dpc[i]].original && m[dpc[i]].original.state && m[dpc[i]].original.state.checked);
|
||||
if(m[dpc[i]].state.checked) {
|
||||
this._data.checkbox.selected.push(dpc[i]);
|
||||
}
|
||||
}
|
||||
}, this));
|
||||
}
|
||||
if(this.settings.checkbox.cascade.indexOf('up') !== -1 || this.settings.checkbox.cascade.indexOf('down') !== -1) {
|
||||
this.element
|
||||
.on('model.jstree', $.proxy(function (e, data) {
|
||||
@ -4106,23 +4159,23 @@
|
||||
p = m[data.parent],
|
||||
dpc = data.nodes,
|
||||
chd = [],
|
||||
c, i, j, k, l, tmp, s = this.settings.checkbox.cascade;
|
||||
c, i, j, k, l, tmp, s = this.settings.checkbox.cascade, t = this.settings.checkbox.tie_selection;
|
||||
|
||||
if(s.indexOf('down') !== -1) {
|
||||
// apply down
|
||||
if(p.state.selected) {
|
||||
if(p.state[ t ? 'selected' : 'checked' ]) {
|
||||
for(i = 0, j = dpc.length; i < j; i++) {
|
||||
m[dpc[i]].state.selected = true;
|
||||
m[dpc[i]].state[ t ? 'selected' : 'checked' ] = true;
|
||||
}
|
||||
this._data.core.selected = this._data.core.selected.concat(dpc);
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected = this._data[ t ? 'core' : 'checkbox' ].selected.concat(dpc);
|
||||
}
|
||||
else {
|
||||
for(i = 0, j = dpc.length; i < j; i++) {
|
||||
if(m[dpc[i]].state.selected) {
|
||||
if(m[dpc[i]].state[ t ? 'selected' : 'checked' ]) {
|
||||
for(k = 0, l = m[dpc[i]].children_d.length; k < l; k++) {
|
||||
m[m[dpc[i]].children_d[k]].state.selected = true;
|
||||
m[m[dpc[i]].children_d[k]].state[ t ? 'selected' : 'checked' ] = true;
|
||||
}
|
||||
this._data.core.selected = this._data.core.selected.concat(m[dpc[i]].children_d);
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected = this._data[ t ? 'core' : 'checkbox' ].selected.concat(m[dpc[i]].children_d);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4141,14 +4194,14 @@
|
||||
while(p && p.id !== '#') {
|
||||
c = 0;
|
||||
for(i = 0, j = p.children.length; i < j; i++) {
|
||||
c += m[p.children[i]].state.selected;
|
||||
c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
|
||||
}
|
||||
if(c === j) {
|
||||
p.state.selected = true;
|
||||
this._data.core.selected.push(p.id);
|
||||
p.state[ t ? 'selected' : 'checked' ] = true;
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
|
||||
tmp = this.get_node(p, true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').addClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').addClass( t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -4159,21 +4212,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
this._data.core.selected = $.vakata.array_unique(this._data.core.selected);
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'checkbox' ].selected);
|
||||
}, this))
|
||||
.on('select_node.jstree', $.proxy(function (e, data) {
|
||||
.on(this.settings.checkbox.tie_selection ? 'select_node.jstree' : 'check_node.jstree', $.proxy(function (e, data) {
|
||||
var obj = data.node,
|
||||
m = this._model.data,
|
||||
par = this.get_node(obj.parent),
|
||||
dom = this.get_node(obj, true),
|
||||
i, j, c, tmp, s = this.settings.checkbox.cascade;
|
||||
i, j, c, tmp, s = this.settings.checkbox.cascade, t = this.settings.checkbox.tie_selection;
|
||||
|
||||
// apply down
|
||||
if(s.indexOf('down') !== -1) {
|
||||
this._data.core.selected = $.vakata.array_unique(this._data.core.selected.concat(obj.children_d));
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'checkbox' ].selected.concat(obj.children_d));
|
||||
for(i = 0, j = obj.children_d.length; i < j; i++) {
|
||||
tmp = m[obj.children_d[i]];
|
||||
tmp.state.selected = true;
|
||||
tmp.state[ t ? 'selected' : 'checked' ] = true;
|
||||
if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
|
||||
tmp.original.state.undetermined = false;
|
||||
}
|
||||
@ -4185,14 +4238,14 @@
|
||||
while(par && par.id !== '#') {
|
||||
c = 0;
|
||||
for(i = 0, j = par.children.length; i < j; i++) {
|
||||
c += m[par.children[i]].state.selected;
|
||||
c += m[par.children[i]].state[ t ? 'selected' : 'checked' ];
|
||||
}
|
||||
if(c === j) {
|
||||
par.state.selected = true;
|
||||
this._data.core.selected.push(par.id);
|
||||
par.state[ t ? 'selected' : 'checked' ] = true;
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected.push(par.id);
|
||||
tmp = this.get_node(par, true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').addClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -4204,10 +4257,10 @@
|
||||
|
||||
// apply down (process .children separately?)
|
||||
if(s.indexOf('down') !== -1 && dom.length) {
|
||||
dom.find('.jstree-anchor').addClass('jstree-clicked');
|
||||
dom.find('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}, this))
|
||||
.on('deselect_all.jstree', $.proxy(function (e, data) {
|
||||
.on(this.settings.checkbox.tie_selection ? 'deselect_all.jstree' : 'uncheck_all.jstree', $.proxy(function (e, data) {
|
||||
var obj = this.get_node('#'),
|
||||
m = this._model.data,
|
||||
i, j, tmp;
|
||||
@ -4218,10 +4271,10 @@
|
||||
}
|
||||
}
|
||||
}, this))
|
||||
.on('deselect_node.jstree', $.proxy(function (e, data) {
|
||||
.on(this.settings.checkbox.tie_selection ? 'deselect_node.jstree' : 'uncheck_node.jstree', $.proxy(function (e, data) {
|
||||
var obj = data.node,
|
||||
dom = this.get_node(obj, true),
|
||||
i, j, tmp, s = this.settings.checkbox.cascade;
|
||||
i, j, tmp, s = this.settings.checkbox.cascade, t = this.settings.checkbox.tie_selection;
|
||||
if(obj && obj.original && obj.original.state && obj.original.state.undetermined) {
|
||||
obj.original.state.undetermined = false;
|
||||
}
|
||||
@ -4230,7 +4283,7 @@
|
||||
if(s.indexOf('down') !== -1) {
|
||||
for(i = 0, j = obj.children_d.length; i < j; i++) {
|
||||
tmp = this._model.data[obj.children_d[i]];
|
||||
tmp.state.selected = false;
|
||||
tmp.state[ t ? 'selected' : 'checked' ] = false;
|
||||
if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
|
||||
tmp.original.state.undetermined = false;
|
||||
}
|
||||
@ -4241,31 +4294,31 @@
|
||||
if(s.indexOf('up') !== -1) {
|
||||
for(i = 0, j = obj.parents.length; i < j; i++) {
|
||||
tmp = this._model.data[obj.parents[i]];
|
||||
tmp.state.selected = false;
|
||||
tmp.state[ t ? 'selected' : 'checked' ] = false;
|
||||
if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
|
||||
tmp.original.state.undetermined = false;
|
||||
}
|
||||
tmp = this.get_node(obj.parents[i], true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').removeClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').removeClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
}
|
||||
tmp = [];
|
||||
for(i = 0, j = this._data.core.selected.length; i < j; i++) {
|
||||
for(i = 0, j = this._data[ t ? 'core' : 'checkbox' ].selected.length; i < j; i++) {
|
||||
// apply down + apply up
|
||||
if(
|
||||
(s.indexOf('down') === -1 || $.inArray(this._data.core.selected[i], obj.children_d) === -1) &&
|
||||
(s.indexOf('up') === -1 || $.inArray(this._data.core.selected[i], obj.parents) === -1)
|
||||
(s.indexOf('down') === -1 || $.inArray(this._data[ t ? 'core' : 'checkbox' ].selected[i], obj.children_d) === -1) &&
|
||||
(s.indexOf('up') === -1 || $.inArray(this._data[ t ? 'core' : 'checkbox' ].selected[i], obj.parents) === -1)
|
||||
) {
|
||||
tmp.push(this._data.core.selected[i]);
|
||||
tmp.push(this._data[ t ? 'core' : 'checkbox' ].selected[i]);
|
||||
}
|
||||
}
|
||||
this._data.core.selected = $.vakata.array_unique(tmp);
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(tmp);
|
||||
|
||||
// apply down (process .children separately?)
|
||||
if(s.indexOf('down') !== -1 && dom.length) {
|
||||
dom.find('.jstree-anchor').removeClass('jstree-clicked');
|
||||
dom.find('.jstree-anchor').removeClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}, this));
|
||||
}
|
||||
@ -4275,18 +4328,18 @@
|
||||
// apply up (whole handler)
|
||||
var p = this.get_node(data.parent),
|
||||
m = this._model.data,
|
||||
i, j, c, tmp;
|
||||
i, j, c, tmp, t = this.settings.checkbox.tie_selection;
|
||||
while(p && p.id !== '#') {
|
||||
c = 0;
|
||||
for(i = 0, j = p.children.length; i < j; i++) {
|
||||
c += m[p.children[i]].state.selected;
|
||||
c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
|
||||
}
|
||||
if(c === j) {
|
||||
p.state.selected = true;
|
||||
this._data.core.selected.push(p.id);
|
||||
p.state[ t ? 'selected' : 'checked' ] = true;
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
|
||||
tmp = this.get_node(p, true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').addClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -4301,20 +4354,20 @@
|
||||
old_par = data.old_parent,
|
||||
new_par = this.get_node(data.parent),
|
||||
m = this._model.data,
|
||||
p, c, i, j, tmp;
|
||||
p, c, i, j, tmp, t = this.settings.checkbox.tie_selection;
|
||||
if(!is_multi) {
|
||||
p = this.get_node(old_par);
|
||||
while(p && p.id !== '#') {
|
||||
c = 0;
|
||||
for(i = 0, j = p.children.length; i < j; i++) {
|
||||
c += m[p.children[i]].state.selected;
|
||||
c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
|
||||
}
|
||||
if(c === j) {
|
||||
p.state.selected = true;
|
||||
this._data.core.selected.push(p.id);
|
||||
p.state[ t ? 'selected' : 'checked' ] = true;
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
|
||||
tmp = this.get_node(p, true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').addClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -4327,25 +4380,25 @@
|
||||
while(p && p.id !== '#') {
|
||||
c = 0;
|
||||
for(i = 0, j = p.children.length; i < j; i++) {
|
||||
c += m[p.children[i]].state.selected;
|
||||
c += m[p.children[i]].state[ t ? 'selected' : 'checked' ];
|
||||
}
|
||||
if(c === j) {
|
||||
if(!p.state.selected) {
|
||||
p.state.selected = true;
|
||||
this._data.core.selected.push(p.id);
|
||||
if(!p.state[ t ? 'selected' : 'checked' ]) {
|
||||
p.state[ t ? 'selected' : 'checked' ] = true;
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
|
||||
tmp = this.get_node(p, true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').addClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').addClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(p.state.selected) {
|
||||
p.state.selected = false;
|
||||
this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, p.id);
|
||||
if(p.state[ t ? 'selected' : 'checked' ]) {
|
||||
p.state[ t ? 'selected' : 'checked' ] = false;
|
||||
this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_remove_item(this._data[ t ? 'core' : 'checkbox' ].selected, p.id);
|
||||
tmp = this.get_node(p, true);
|
||||
if(tmp && tmp.length) {
|
||||
tmp.children('.jstree-anchor').removeClass('jstree-clicked');
|
||||
tmp.children('.jstree-anchor').removeClass(t ? 'jstree-clicked' : 'jstree-checked');
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -4364,7 +4417,7 @@
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this._undetermined = function () {
|
||||
var i, j, m = this._model.data, s = this._data.core.selected, p = [], t = this;
|
||||
var i, j, m = this._model.data, t = this.settings.checkbox.tie_selection, s = this._data[ t ? 'core' : 'checkbox' ].selected, p = [], tt = this;
|
||||
for(i = 0, j = s.length; i < j; i++) {
|
||||
if(m[s[i]] && m[s[i]].parents) {
|
||||
p = p.concat(m[s[i]].parents);
|
||||
@ -4373,7 +4426,7 @@
|
||||
// attempt for server side undetermined state
|
||||
this.element.find('.jstree-closed').not(':has(.jstree-children)')
|
||||
.each(function () {
|
||||
var tmp = t.get_node(this), tmp2;
|
||||
var tmp = tt.get_node(this), tmp2;
|
||||
if(!tmp.state.loaded) {
|
||||
if(tmp.original && tmp.original.state && tmp.original.state.undetermined && tmp.original.state.undetermined === true) {
|
||||
p.push(tmp.id);
|
||||
@ -4395,7 +4448,7 @@
|
||||
|
||||
this.element.find('.jstree-undetermined').removeClass('jstree-undetermined');
|
||||
for(i = 0, j = p.length; i < j; i++) {
|
||||
if(!m[p[i]].state.selected) {
|
||||
if(!m[p[i]].state[ t ? 'selected' : 'checked' ]) {
|
||||
s = this.get_node(p[i], true);
|
||||
if(s && s.length) {
|
||||
s.children('.jstree-anchor').children('.jstree-checkbox').addClass('jstree-undetermined');
|
||||
@ -4414,6 +4467,7 @@
|
||||
}
|
||||
}
|
||||
if(tmp) {
|
||||
if(!this.settings.checkbox.tie_selection && this._model.data[obj.id].state.checked) { tmp.className += ' jstree-checked'; }
|
||||
tmp.insertBefore(_i.cloneNode(false), tmp.childNodes[0]);
|
||||
}
|
||||
}
|
||||
@ -4423,12 +4477,6 @@
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
this.activate_node = function (obj, e) {
|
||||
if(this.settings.checkbox.whole_node || $(e.target).hasClass('jstree-checkbox')) {
|
||||
e.ctrlKey = true;
|
||||
}
|
||||
return parent.activate_node.call(this, obj, e);
|
||||
};
|
||||
/**
|
||||
* show the node checkbox icons
|
||||
* @name show_checkboxes()
|
||||
@ -4447,6 +4495,247 @@
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.toggle_checkboxes = function () { if(this._data.core.themes.checkboxes) { this.hide_checkboxes(); } else { this.show_checkboxes(); } };
|
||||
/**
|
||||
* checks if a node is in an undetermined state
|
||||
* @name is_undetermined(obj)
|
||||
* @param {mixed} obj
|
||||
* @return {Boolean}
|
||||
*/
|
||||
this.is_undetermined = function (obj) {
|
||||
obj = this.get_node(obj);
|
||||
var s = this.settings.checkbox.cascade, i, j, t = this.settings.checkbox.tie_selection, d = this._data[ t ? 'core' : 'checkbox' ].selected, m = this._model.data;
|
||||
if(!obj || obj.state[ t ? 'selected' : 'checked' ] === true || s.indexOf('undetermined') === -1 || (s.indexOf('down') === -1 && s.indexOf('up') === -1)) {
|
||||
return false;
|
||||
}
|
||||
if(!obj.state.loaded && obj.original.state.undetermined === true) {
|
||||
return true;
|
||||
}
|
||||
for(i = 0, j = obj.children_d.length; i < j; i++) {
|
||||
if($.inArray(obj.children_d[i], d) !== -1 || (!m[obj.children_d[i]].state.loaded && m[obj.children_d[i]].original.state.undetermined)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
this.activate_node = function (obj, e) {
|
||||
if(this.settings.checkbox.tie_selection && (this.settings.checkbox.whole_node || $(e.target).hasClass('jstree-checkbox'))) {
|
||||
e.ctrlKey = true;
|
||||
}
|
||||
if(this.settings.checkbox.tie_selection || (!this.settings.checkbox.whole_node && !$(e.target).hasClass('jstree-checkbox'))) {
|
||||
return parent.activate_node.call(this, obj, e);
|
||||
}
|
||||
if(this.is_checked(obj)) {
|
||||
this.uncheck_node(obj, e);
|
||||
}
|
||||
else {
|
||||
this.check_node(obj, e);
|
||||
}
|
||||
this.trigger('activate_node', { 'node' : this.get_node(obj) });
|
||||
};
|
||||
|
||||
/**
|
||||
* check a node (only if tie_selection in checkbox settings is false, otherwise select_node will be called internally)
|
||||
* @name check_node(obj)
|
||||
* @param {mixed} obj an array can be used to check multiple nodes
|
||||
* @trigger check_node.jstree
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.check_node = function (obj, e) {
|
||||
if(this.settings.checkbox.tie_selection) { return this.select_node(obj, false, true, e); }
|
||||
var dom, t1, t2, th;
|
||||
if($.isArray(obj)) {
|
||||
obj = obj.slice();
|
||||
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
||||
this.check_node(obj[t1], e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
obj = this.get_node(obj);
|
||||
if(!obj || obj.id === '#') {
|
||||
return false;
|
||||
}
|
||||
dom = this.get_node(obj, true);
|
||||
if(!obj.state.checked) {
|
||||
obj.state.checked = true;
|
||||
this._data.checkbox.selected.push(obj.id);
|
||||
if(dom && dom.length) {
|
||||
dom.children('.jstree-anchor').addClass('jstree-checked');
|
||||
}
|
||||
/**
|
||||
* triggered when an node is checked (only if tie_selection in checkbox settings is false)
|
||||
* @event
|
||||
* @name check_node.jstree
|
||||
* @param {Object} node
|
||||
* @param {Array} selected the current selection
|
||||
* @param {Object} event the event (if any) that triggered this check_node
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.trigger('check_node', { 'node' : obj, 'selected' : this._data.checkbox.selected, 'event' : e });
|
||||
}
|
||||
};
|
||||
/**
|
||||
* uncheck a node (only if tie_selection in checkbox settings is false, otherwise deselect_node will be called internally)
|
||||
* @name deselect_node(obj)
|
||||
* @param {mixed} obj an array can be used to deselect multiple nodes
|
||||
* @trigger uncheck_node.jstree
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.uncheck_node = function (obj, e) {
|
||||
if(this.settings.checkbox.tie_selection) { return this.deselect_node(obj, false, e); }
|
||||
var t1, t2, dom;
|
||||
if($.isArray(obj)) {
|
||||
obj = obj.slice();
|
||||
for(t1 = 0, t2 = obj.length; t1 < t2; t1++) {
|
||||
this.uncheck_node(obj[t1], e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
obj = this.get_node(obj);
|
||||
if(!obj || obj.id === '#') {
|
||||
return false;
|
||||
}
|
||||
dom = this.get_node(obj, true);
|
||||
if(obj.state.checked) {
|
||||
obj.state.checked = false;
|
||||
this._data.checkbox.selected = $.vakata.array_remove_item(this._data.checkbox.selected, obj.id);
|
||||
if(dom.length) {
|
||||
dom.children('.jstree-anchor').removeClass('jstree-checked');
|
||||
}
|
||||
/**
|
||||
* triggered when an node is unchecked (only if tie_selection in checkbox settings is false)
|
||||
* @event
|
||||
* @name uncheck_node.jstree
|
||||
* @param {Object} node
|
||||
* @param {Array} selected the current selection
|
||||
* @param {Object} event the event (if any) that triggered this uncheck_node
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.trigger('uncheck_node', { 'node' : obj, 'selected' : this._data.checkbox.selected, 'event' : e });
|
||||
}
|
||||
};
|
||||
/**
|
||||
* checks all nodes in the tree (only if tie_selection in checkbox settings is false, otherwise select_all will be called internally)
|
||||
* @name check_all()
|
||||
* @trigger check_all.jstree, changed.jstree
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.check_all = function () {
|
||||
if(this.settings.checkbox.tie_selection) { return this.select_all(); }
|
||||
var tmp = this._data.checkbox.selected.concat([]), i, j;
|
||||
this._data.checkbox.selected = this._model.data['#'].children_d.concat();
|
||||
for(i = 0, j = this._data.checkbox.selected.length; i < j; i++) {
|
||||
if(this._model.data[this._data.checkbox.selected[i]]) {
|
||||
this._model.data[this._data.checkbox.selected[i]].state.checked = true;
|
||||
}
|
||||
}
|
||||
this.redraw(true);
|
||||
/**
|
||||
* triggered when all nodes are checked (only if tie_selection in checkbox settings is false)
|
||||
* @event
|
||||
* @name check_all.jstree
|
||||
* @param {Array} selected the current selection
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.trigger('check_all', { 'selected' : this._data.checkbox.selected });
|
||||
};
|
||||
/**
|
||||
* uncheck all checked nodes (only if tie_selection in checkbox settings is false, otherwise deselect_all will be called internally)
|
||||
* @name uncheck_all()
|
||||
* @trigger uncheck_all.jstree
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.uncheck_all = function () {
|
||||
if(this.settings.checkbox.tie_selection) { return this.deselect_all(); }
|
||||
var tmp = this._data.checkbox.selected.concat([]), i, j;
|
||||
for(i = 0, j = this._data.checkbox.selected.length; i < j; i++) {
|
||||
if(this._model.data[this._data.checkbox.selected[i]]) {
|
||||
this._model.data[this._data.checkbox.selected[i]].state.checked = false;
|
||||
}
|
||||
}
|
||||
this._data.checkbox.selected = [];
|
||||
this.element.find('.jstree-checked').removeClass('jstree-checked');
|
||||
/**
|
||||
* triggered when all nodes are unchecked (only if tie_selection in checkbox settings is false)
|
||||
* @event
|
||||
* @name uncheck_all.jstree
|
||||
* @param {Object} node the previous selection
|
||||
* @param {Array} selected the current selection
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.trigger('uncheck_all', { 'selected' : this._data.checkbox.selected, 'node' : tmp });
|
||||
};
|
||||
/**
|
||||
* checks if a node is checked (if tie_selection is on in the settings this function will return the same as is_selected)
|
||||
* @name is_checked(obj)
|
||||
* @param {mixed} obj
|
||||
* @return {Boolean}
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.is_checked = function (obj) {
|
||||
if(this.settings.checkbox.tie_selection) { return this.is_selected(obj); }
|
||||
obj = this.get_node(obj);
|
||||
if(!obj || obj.id === '#') { return false; }
|
||||
return obj.state.checked;
|
||||
};
|
||||
/**
|
||||
* get an array of all checked nodes (if tie_selection is on in the settings this function will return the same as get_selected)
|
||||
* @name get_checked([full])
|
||||
* @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
|
||||
* @return {Array}
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.get_checked = function (full) {
|
||||
if(this.settings.checkbox.tie_selection) { return this.get_selected(full); }
|
||||
return full ? $.map(this._data.checkbox.selected, $.proxy(function (i) { return this.get_node(i); }, this)) : this._data.checkbox.selected;
|
||||
};
|
||||
/**
|
||||
* get an array of all top level checked nodes (ignoring children of checked nodes) (if tie_selection is on in the settings this function will return the same as get_top_selected)
|
||||
* @name get_top_checked([full])
|
||||
* @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
|
||||
* @return {Array}
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.get_top_checked = function (full) {
|
||||
if(this.settings.checkbox.tie_selection) { return this.get_top_selected(full); }
|
||||
var tmp = this.get_checked(true),
|
||||
obj = {}, i, j, k, l;
|
||||
for(i = 0, j = tmp.length; i < j; i++) {
|
||||
obj[tmp[i].id] = tmp[i];
|
||||
}
|
||||
for(i = 0, j = tmp.length; i < j; i++) {
|
||||
for(k = 0, l = tmp[i].children_d.length; k < l; k++) {
|
||||
if(obj[tmp[i].children_d[k]]) {
|
||||
delete obj[tmp[i].children_d[k]];
|
||||
}
|
||||
}
|
||||
}
|
||||
tmp = [];
|
||||
for(i in obj) {
|
||||
if(obj.hasOwnProperty(i)) {
|
||||
tmp.push(i);
|
||||
}
|
||||
}
|
||||
return full ? $.map(tmp, $.proxy(function (i) { return this.get_node(i); }, this)) : tmp;
|
||||
};
|
||||
/**
|
||||
* get an array of all bottom level checked nodes (ignoring selected parents) (if tie_selection is on in the settings this function will return the same as get_bottom_selected)
|
||||
* @name get_bottom_checked([full])
|
||||
* @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
|
||||
* @return {Array}
|
||||
* @plugin checkbox
|
||||
*/
|
||||
this.get_bottom_checked = function (full) {
|
||||
if(this.settings.checkbox.tie_selection) { return this.get_bottom_selected(full); }
|
||||
var tmp = this.get_checked(true),
|
||||
obj = [], i, j;
|
||||
for(i = 0, j = tmp.length; i < j; i++) {
|
||||
if(!tmp[i].children.length) {
|
||||
obj.push(tmp[i].id);
|
||||
}
|
||||
}
|
||||
return full ? $.map(obj, $.proxy(function (i) { return this.get_node(i); }, this)) : obj;
|
||||
};
|
||||
};
|
||||
|
||||
// include the checkbox plugin by default
|
||||
@ -5120,7 +5409,7 @@
|
||||
})
|
||||
.bind('dnd_move.vakata', function (e, data) {
|
||||
if(opento) { clearTimeout(opento); }
|
||||
if(!data.data.jstree) { return; }
|
||||
if(!data || !data.data || !data.data.jstree) { return; }
|
||||
|
||||
// if we are hovering the marker image do nothing (can happen on "inside" drags)
|
||||
if(data.event.target.id && data.event.target.id === 'jstree-marker') {
|
||||
@ -5235,14 +5524,14 @@
|
||||
marker.hide();
|
||||
})
|
||||
.bind('dnd_scroll.vakata', function (e, data) {
|
||||
if(!data.data.jstree) { return; }
|
||||
if(!data || !data.data || !data.data.jstree) { return; }
|
||||
marker.hide();
|
||||
lastmv = false;
|
||||
data.helper.find('.jstree-icon:eq(0)').removeClass('jstree-ok').addClass('jstree-er');
|
||||
})
|
||||
.bind('dnd_stop.vakata', function (e, data) {
|
||||
if(opento) { clearTimeout(opento); }
|
||||
if(!data.data.jstree) { return; }
|
||||
if(!data || !data.data || !data.data.jstree) { return; }
|
||||
marker.hide();
|
||||
var i, j, nodes = [];
|
||||
if(lastmv) {
|
||||
@ -5266,7 +5555,7 @@
|
||||
})
|
||||
.bind('keyup keydown', function (e, data) {
|
||||
data = $.vakata.dnd._get();
|
||||
if(data.data && data.data.jstree) {
|
||||
if(data && data.data && data.data.jstree) {
|
||||
data.helper.find('.jstree-copy:eq(0)')[ data.data.origin && (data.data.origin.settings.dnd.always_copy || (data.data.origin.settings.dnd.copy && (e.metaKey || e.ctrlKey))) ? 'show' : 'hide' ]();
|
||||
}
|
||||
});
|
||||
@ -5526,7 +5815,7 @@
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}(jQuery));
|
||||
}($));
|
||||
|
||||
// include the dnd plugin by default
|
||||
// $.jstree.defaults.plugins.push("dnd");
|
||||
@ -5881,7 +6170,7 @@
|
||||
};
|
||||
return txt === true ? { 'search' : search } : search(txt);
|
||||
};
|
||||
}(jQuery));
|
||||
}($));
|
||||
|
||||
// include the search plugin by default
|
||||
// $.jstree.defaults.plugins.push("search");
|
||||
@ -6041,7 +6330,7 @@
|
||||
get : function (key) { return window.localStorage.getItem(key); },
|
||||
del : function (key) { return window.localStorage.removeItem(key); }
|
||||
};
|
||||
}(jQuery));
|
||||
}($));
|
||||
|
||||
// include the state plugin by default
|
||||
// $.jstree.defaults.plugins.push("state");
|
||||
@ -6090,8 +6379,8 @@
|
||||
parent.init.call(this, el, options);
|
||||
this._model.data['#'].type = '#';
|
||||
};
|
||||
this.refresh = function (skip_loading) {
|
||||
parent.refresh.call(this, skip_loading);
|
||||
this.refresh = function (skip_loading, forget_state) {
|
||||
parent.refresh.call(this, skip_loading, forget_state);
|
||||
this._model.data['#'].type = '#';
|
||||
};
|
||||
this.bind = function () {
|
||||
@ -6306,7 +6595,7 @@
|
||||
case "delete_node":
|
||||
return true;
|
||||
case "rename_node":
|
||||
i = ($.inArray(n, c) === -1 || (obj.text && obj.text === n));
|
||||
i = ($.inArray(n, c) === -1 || (obj.text && obj.text[ s ? 'toString' : 'toLowerCase']() === n));
|
||||
if(!i) {
|
||||
this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_01', 'reason' : 'Child with name ' + n + ' already exists. Preventing: ' + chk, 'data' : JSON.stringify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? par.id : false }) };
|
||||
}
|
5
public/libs/tree-3.0.3/jstree.min.js
vendored
Normal file
4
public/libs/tree-3.0.3/libs/jquery.js
vendored
Normal file
36
public/libs/tree-3.0.3/libs/require.js
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
RequireJS 2.1.9 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function H(b){return"[object Function]"===L.call(b)}function I(b){return"[object Array]"===L.call(b)}function y(b,c){if(b){var e;for(e=0;e<b.length&&(!b[e]||!c(b[e],e,b));e+=1);}}function M(b,c){if(b){var e;for(e=b.length-1;-1<e&&(!b[e]||!c(b[e],e,b));e-=1);}}function t(b,c){return ga.call(b,c)}function l(b,c){return t(b,c)&&b[c]}function F(b,c){for(var e in b)if(t(b,e)&&c(b[e],e))break}function Q(b,c,e,h){c&&F(c,function(c,j){if(e||!t(b,j))h&&"string"!==typeof c?(b[j]||(b[j]={}),Q(b[j],
|
||||
c,e,h)):b[j]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function aa(b){throw b;}function ba(b){if(!b)return b;var c=Z;y(b.split("."),function(b){c=c[b]});return c}function A(b,c,e,h){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=h;e&&(c.originalError=e);return c}function ha(b){function c(a,f,b){var d,m,c,g,e,h,j,i=f&&f.split("/");d=i;var n=k.map,p=n&&n["*"];if(a&&"."===a.charAt(0))if(f){d=l(k.pkgs,f)?i=[f]:i.slice(0,i.length-
|
||||
1);f=a=d.concat(a.split("/"));for(d=0;f[d];d+=1)if(m=f[d],"."===m)f.splice(d,1),d-=1;else if(".."===m)if(1===d&&(".."===f[2]||".."===f[0]))break;else 0<d&&(f.splice(d-1,2),d-=2);d=l(k.pkgs,f=a[0]);a=a.join("/");d&&a===f+"/"+d.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(b&&n&&(i||p)){f=a.split("/");for(d=f.length;0<d;d-=1){c=f.slice(0,d).join("/");if(i)for(m=i.length;0<m;m-=1)if(b=l(n,i.slice(0,m).join("/")))if(b=l(b,c)){g=b;e=d;break}if(g)break;!h&&(p&&l(p,c))&&(h=l(p,c),j=d)}!g&&
|
||||
h&&(g=h,e=j);g&&(f.splice(0,e,g),a=f.join("/"))}return a}function e(a){z&&y(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===i.contextName)return f.parentNode.removeChild(f),!0})}function h(a){var f=l(k.paths,a);if(f&&I(f)&&1<f.length)return f.shift(),i.require.undef(a),i.require([a]),!0}function $(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function n(a,f,
|
||||
b,d){var m,B,g=null,e=f?f.name:null,h=a,j=!0,k="";a||(j=!1,a="_@r"+(L+=1));a=$(a);g=a[0];a=a[1];g&&(g=c(g,e,d),B=l(r,g));a&&(g?k=B&&B.normalize?B.normalize(a,function(a){return c(a,e,d)}):c(a,e,d):(k=c(a,e,d),a=$(k),g=a[0],k=a[1],b=!0,m=i.nameToUrl(k)));b=g&&!B&&!b?"_unnormalized"+(M+=1):"";return{prefix:g,name:k,parentMap:f,unnormalized:!!b,url:m,originalName:h,isDefine:j,id:(g?g+"!"+k:k)+b}}function q(a){var f=a.id,b=l(p,f);b||(b=p[f]=new i.Module(a));return b}function s(a,f,b){var d=a.id,m=l(p,
|
||||
d);if(t(r,d)&&(!m||m.defineEmitComplete))"defined"===f&&b(r[d]);else if(m=q(a),m.error&&"error"===f)b(m.error);else m.on(f,b)}function v(a,f){var b=a.requireModules,d=!1;if(f)f(a);else if(y(b,function(f){if(f=l(p,f))f.error=a,f.events.error&&(d=!0,f.emit("error",a))}),!d)j.onError(a)}function w(){R.length&&(ia.apply(G,[G.length-1,0].concat(R)),R=[])}function x(a){delete p[a];delete T[a]}function E(a,f,b){var d=a.map.id;a.error?a.emit("error",a.error):(f[d]=!0,y(a.depMaps,function(d,c){var g=d.id,
|
||||
e=l(p,g);e&&(!a.depMatched[c]&&!b[g])&&(l(f,g)?(a.defineDep(c,r[g]),a.check()):E(e,f,b))}),b[d]=!0)}function C(){var a,f,b,d,m=(b=1E3*k.waitSeconds)&&i.startTime+b<(new Date).getTime(),c=[],g=[],j=!1,l=!0;if(!U){U=!0;F(T,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||g.push(b),!b.error))if(!b.inited&&m)h(f)?j=d=!0:(c.push(f),e(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(j=!0,!a.prefix))return l=!1});if(m&&c.length)return b=A("timeout","Load timeout for modules: "+c,null,c),b.contextName=
|
||||
i.contextName,v(b);l&&y(g,function(a){E(a,{},{})});if((!m||d)&&j)if((z||da)&&!V)V=setTimeout(function(){V=0;C()},50);U=!1}}function D(a){t(r,a[0])||q(n(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!W?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||W)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();G.length;){a=
|
||||
G.shift();if(null===a[0])return v(A("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var U,X,i,N,V,k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},p={},T={},Y={},G=[],r={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){var b=
|
||||
l(k.pkgs,a.map.id);return(b?l(k.config,a.map.id+"/"+b.main):l(k.config,a.map.id))||{}},exports:r[a.map.id]}}};X=function(a){this.events=l(Y,a.id)||{};this.map=a;this.shim=l(k.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};X.prototype={init:function(a,b,c,d){d=d||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;
|
||||
this.ignore=d.ignore;d.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var d=this.exports,m=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(H(m)){if(this.events.error&&this.map.isDefine||j.onError!==aa)try{d=i.execCb(c,m,b,d)}catch(e){a=e}else d=i.execCb(c,m,b,d);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==
|
||||
this.exports?d=b.exports:void 0===d&&this.usingExports&&(d=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",v(this.error=a)}else d=m;this.exports=d;if(this.map.isDefine&&!this.ignore&&(r[c]=d,j.onResourceLoad))j.onResourceLoad(i,this.map,this.depMaps);x(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=
|
||||
!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,e=n(a.prefix);this.depMaps.push(e);s(e,"defined",u(this,function(d){var m,e;e=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,h=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(d.normalize&&(e=d.normalize(e,function(a){return c(a,g,!0)})||""),d=n(a.prefix+"!"+e,this.map.parentMap),s(d,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),
|
||||
e=l(p,d.id)){this.depMaps.push(d);if(this.events.error)e.on("error",u(this,function(a){this.emit("error",a)}));e.enable()}}else m=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),m.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];F(p,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&x(a.map.id)});v(a)}),m.fromText=u(this,function(d,c){var e=a.name,g=n(e),B=O;c&&(d=c);B&&(O=!1);q(g);t(k.config,b)&&(k.config[e]=k.config[b]);try{j.exec(d)}catch(ca){return v(A("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+ca,ca,[b]))}B&&(O=!0);this.depMaps.push(g);i.completeLoad(e);h([e],m)}),d.load(a.name,h,m,k)}));i.enable(e,this);this.pluginMaps[e.id]=e},enable:function(){T[this.map.id]=this;this.enabling=this.enabled=!0;y(this.depMaps,u(this,function(a,b){var c,d;if("string"===typeof a){a=n(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=l(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;s(a,"defined",u(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&s(a,"error",u(this,this.errback))}c=a.id;d=p[c];!t(N,c)&&(d&&!d.enabled)&&i.enable(a,this)}));F(this.pluginMaps,u(this,function(a){var b=l(p,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){y(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:k,contextName:b,registry:p,defined:r,urlFetched:S,defQueue:G,Module:X,makeModuleMap:n,
|
||||
nextTick:j.nextTick,onError:v,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,d={paths:!0,config:!0,map:!0};F(a,function(a,b){d[b]?"map"===b?(k.map||(k.map={}),Q(k[b],a,!0,!0)):Q(k[b],a,!0):k[b]=a});a.shim&&(F(a.shim,function(a,b){I(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);c[b]=a}),k.shim=c);a.packages&&(y(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,
|
||||
location:a.location||a.name,main:(a.main||"main").replace(ja,"").replace(ea,"")}}),k.pkgs=b);F(p,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=n(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Z,arguments));return b||a.exports&&ba(a.exports)}},makeRequire:function(a,f){function h(d,c,e){var g,k;f.enableBuildCallback&&(c&&H(c))&&(c.__requireJsBuild=!0);if("string"===typeof d){if(H(c))return v(A("requireargs",
|
||||
"Invalid require call"),e);if(a&&t(N,d))return N[d](p[a.id]);if(j.get)return j.get(i,d,a,h);g=n(d,a,!1,!0);g=g.id;return!t(r,g)?v(A("notloaded",'Module name "'+g+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[g]}K();i.nextTick(function(){K();k=q(n(null,a));k.skipMap=f.skipMap;k.init(d,c,e,{enabled:!0});C()});return h}f=f||{};Q(h,{isBrowser:z,toUrl:function(b){var f,e=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==e&&(!("."===g||".."===g)||1<e))f=b.substring(e,b.length),b=
|
||||
b.substring(0,e);return i.nameToUrl(c(b,a&&a.id,!0),f,!0)},defined:function(b){return t(r,n(b,a,!1,!0).id)},specified:function(b){b=n(b,a,!1,!0).id;return t(r,b)||t(p,b)}});a||(h.undef=function(b){w();var c=n(b,a,!0),f=l(p,b);e(b);delete r[b];delete S[c.url];delete Y[b];f&&(f.events.defined&&(Y[b]=f.events),x(b))});return h},enable:function(a){l(p,a.id)&&q(a).enable()},completeLoad:function(a){var b,c,d=l(k.shim,a)||{},e=d.exports;for(w();G.length;){c=G.shift();if(null===c[0]){c[0]=a;if(b)break;b=
|
||||
!0}else c[0]===a&&(b=!0);D(c)}c=l(p,a);if(!b&&!t(r,a)&&c&&!c.inited){if(k.enforceDefine&&(!e||!ba(e)))return h(a)?void 0:v(A("nodefine","No define call for "+a,null,[a]));D([a,d.deps||[],d.exportsFn])}C()},nameToUrl:function(a,b,c){var d,e,h,g,i,n;if(j.jsExtRegExp.test(a))g=a+(b||"");else{d=k.paths;e=k.pkgs;g=a.split("/");for(i=g.length;0<i;i-=1)if(n=g.slice(0,i).join("/"),h=l(e,n),n=l(d,n)){I(n)&&(n=n[0]);g.splice(0,i,n);break}else if(h){a=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,i,
|
||||
a);break}g=g.join("/");g+=b||(/^data\:|\?/.test(g)||c?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+g}return k.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+k.urlArgs):g},load:function(a,b){j.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ka.test((a.currentTarget||a.srcElement).readyState))P=null,a=J(a),i.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!h(b.id))return v(A("scripterror","Script error for: "+b.id,
|
||||
a,[b.id]))}};i.require=i.makeRequire();return i}var j,w,x,C,J,D,P,K,q,fa,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ja=/^\.\//;w=Object.prototype;var L=w.toString,ga=w.hasOwnProperty,ia=Array.prototype.splice,z=!!("undefined"!==typeof window&&"undefined"!==typeof navigator&&window.document),da=!z&&"undefined"!==typeof importScripts,ka=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,W="undefined"!==typeof opera&&
|
||||
"[object Opera]"===opera.toString(),E={},s={},R=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(H(requirejs))return;s=requirejs;requirejs=void 0}"undefined"!==typeof require&&!H(require)&&(s=require,require=void 0);j=requirejs=function(b,c,e,h){var q,n="_";!I(b)&&"string"!==typeof b&&(q=b,I(c)?(b=c,c=e,e=h):b=[]);q&&q.context&&(n=q.context);(h=l(E,n))||(h=E[n]=j.s.newContext(n));q&&h.configure(q);return h.require(b,c,e)};j.config=function(b){return j(b)};j.nextTick="undefined"!==
|
||||
typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=j);j.version="2.1.9";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=z;w=j.s={contexts:E,newContext:ha};j({});y(["toUrl","undef","defined","specified"],function(b){j[b]=function(){var c=E._;return c.require[b].apply(c,arguments)}});if(z&&(x=w.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0]))x=w.head=C.parentNode;j.onError=aa;j.createNode=function(b){var c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml",
|
||||
"html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};j.load=function(b,c,e){var h=b&&b.config||{};if(z)return h=j.createNode(h,c,e),h.setAttribute("data-requirecontext",b.contextName),h.setAttribute("data-requiremodule",c),h.attachEvent&&!(h.attachEvent.toString&&0>h.attachEvent.toString().indexOf("[native code"))&&!W?(O=!0,h.attachEvent("onreadystatechange",b.onScriptLoad)):(h.addEventListener("load",b.onScriptLoad,!1),h.addEventListener("error",
|
||||
b.onScriptError,!1)),h.src=e,K=h,C?x.insertBefore(h,C):x.appendChild(h),K=null,h;if(da)try{importScripts(e),b.completeLoad(c)}catch(l){b.onError(A("importscripts","importScripts failed for "+c+" at "+e,l,[c]))}};z&&!s.skipDataMain&&M(document.getElementsByTagName("script"),function(b){x||(x=b.parentNode);if(J=b.getAttribute("data-main"))return q=J,s.baseUrl||(D=q.split("/"),q=D.pop(),fa=D.length?D.join("/")+"/":"./",s.baseUrl=fa),q=q.replace(ea,""),j.jsExtRegExp.test(q)&&(q=J),s.deps=s.deps?s.deps.concat(q):
|
||||
[q],!0});define=function(b,c,e){var h,j;"string"!==typeof b&&(e=c,c=b,b=null);I(c)||(e=c,c=null);!c&&H(e)&&(c=[],e.length&&(e.toString().replace(la,"").replace(ma,function(b,e){c.push(e)}),c=(1===e.length?["require"]:["require","exports","module"]).concat(c)));if(O){if(!(h=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),h=P;h&&(b||(b=h.getAttribute("data-requiremodule")),j=E[h.getAttribute("data-requirecontext")])}(j?
|
||||
j.defQueue:R).push([b,c,e])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(s)}})(this);
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@ -474,10 +474,12 @@
|
||||
.jstree-default .jstree-checkbox:hover {
|
||||
background-position: -164px -36px;
|
||||
}
|
||||
.jstree-default .jstree-clicked > .jstree-checkbox {
|
||||
.jstree-default.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
||||
.jstree-default .jstree-checked > .jstree-checkbox {
|
||||
background-position: -228px -4px;
|
||||
}
|
||||
.jstree-default .jstree-clicked > .jstree-checkbox:hover {
|
||||
.jstree-default.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
||||
.jstree-default .jstree-checked > .jstree-checkbox:hover {
|
||||
background-position: -228px -36px;
|
||||
}
|
||||
.jstree-default .jstree-anchor > .jstree-undetermined {
|
||||
@ -610,10 +612,12 @@
|
||||
.jstree-default-small .jstree-checkbox:hover {
|
||||
background-position: -167px -39px;
|
||||
}
|
||||
.jstree-default-small .jstree-clicked > .jstree-checkbox {
|
||||
.jstree-default-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
||||
.jstree-default-small .jstree-checked > .jstree-checkbox {
|
||||
background-position: -231px -7px;
|
||||
}
|
||||
.jstree-default-small .jstree-clicked > .jstree-checkbox:hover {
|
||||
.jstree-default-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
||||
.jstree-default-small .jstree-checked > .jstree-checkbox:hover {
|
||||
background-position: -231px -39px;
|
||||
}
|
||||
.jstree-default-small .jstree-anchor > .jstree-undetermined {
|
||||
@ -746,10 +750,12 @@
|
||||
.jstree-default-large .jstree-checkbox:hover {
|
||||
background-position: -160px -32px;
|
||||
}
|
||||
.jstree-default-large .jstree-clicked > .jstree-checkbox {
|
||||
.jstree-default-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
||||
.jstree-default-large .jstree-checked > .jstree-checkbox {
|
||||
background-position: -224px 0px;
|
||||
}
|
||||
.jstree-default-large .jstree-clicked > .jstree-checkbox:hover {
|
||||
.jstree-default-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
||||
.jstree-default-large .jstree-checked > .jstree-checkbox:hover {
|
||||
background-position: -224px -32px;
|
||||
}
|
||||
.jstree-default-large .jstree-anchor > .jstree-undetermined {
|
||||
@ -902,8 +908,10 @@
|
||||
.jstree-default-responsive .jstree-checkbox:hover {
|
||||
background-position: -40px -80px;
|
||||
}
|
||||
.jstree-default-responsive .jstree-clicked > .jstree-checkbox,
|
||||
.jstree-default-responsive .jstree-clicked > .jstree-checkbox:hover {
|
||||
.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
|
||||
.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
|
||||
.jstree-default-responsive .jstree-checked > .jstree-checkbox,
|
||||
.jstree-default-responsive .jstree-checked > .jstree-checkbox:hover {
|
||||
background-position: 0 -80px;
|
||||
}
|
||||
.jstree-default-responsive .jstree-anchor > .jstree-undetermined,
|
1
public/libs/tree-3.0.3/themes/default/style.min.css
vendored
Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
2
public/libs/tree/jquery.jstree.min.js
vendored
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
require_once 'jsminplus.php';
|
||||
$script = file_get_contents('jquery.jstree.js');
|
||||
$minified = JSMinPlus::minify($script);
|
||||
file_put_contents('jquery.jstree.min.js', $minified);
|
Before Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 43 B |
@ -1,61 +0,0 @@
|
||||
/*
|
||||
* jsTree apple theme 1.0
|
||||
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
||||
* Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
|
||||
*/
|
||||
|
||||
.jstree-apple > ul { background:url("bg.jpg") left top repeat; }
|
||||
.jstree-apple li,
|
||||
.jstree-apple ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
|
||||
.jstree-apple li { background-position:-90px 0; background-repeat:repeat-y; }
|
||||
.jstree-apple li.jstree-last { background:transparent; }
|
||||
.jstree-apple .jstree-open > ins { background-position:-72px 0; }
|
||||
.jstree-apple .jstree-closed > ins { background-position:-54px 0; }
|
||||
.jstree-apple .jstree-leaf > ins { background-position:-36px 0; }
|
||||
|
||||
.jstree-apple a { border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-shadow:1px 1px 1px white; }
|
||||
.jstree-apple .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 3px 0 1px; text-shadow:1px 1px 1px silver; }
|
||||
.jstree-apple .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 3px 0 1px; }
|
||||
.jstree-apple a .jstree-icon { background-position:-56px -20px; }
|
||||
.jstree-apple a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
|
||||
|
||||
.jstree-apple.jstree-focused { background:white; }
|
||||
|
||||
.jstree-apple .jstree-no-dots li,
|
||||
.jstree-apple .jstree-no-dots .jstree-leaf > ins { background:transparent; }
|
||||
.jstree-apple .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
|
||||
.jstree-apple .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
|
||||
|
||||
.jstree-apple .jstree-no-icons a .jstree-icon { display:none; }
|
||||
|
||||
.jstree-apple .jstree-search { font-style:italic; }
|
||||
|
||||
.jstree-apple .jstree-no-icons .jstree-checkbox { display:inline-block; }
|
||||
.jstree-apple .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
|
||||
.jstree-apple .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
|
||||
.jstree-apple .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
|
||||
.jstree-apple .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
|
||||
.jstree-apple .jstree-checked > a > .checkbox:hover { background-position:-38px -37px; }
|
||||
.jstree-apple .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
|
||||
.jstree-apple .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
|
||||
|
||||
#vakata-dragged.jstree-apple ins { background:transparent !important; }
|
||||
#vakata-dragged.jstree-apple .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
|
||||
#vakata-dragged.jstree-apple .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
|
||||
#jstree-marker.jstree-apple { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; }
|
||||
|
||||
.jstree-apple a.jstree-search { color:aqua; }
|
||||
.jstree-apple .jstree-locked a { color:silver; cursor:default; }
|
||||
|
||||
#vakata-contextmenu.jstree-apple-context,
|
||||
#vakata-contextmenu.jstree-apple-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
|
||||
#vakata-contextmenu.jstree-apple-context li { }
|
||||
#vakata-contextmenu.jstree-apple-context a { color:black; }
|
||||
#vakata-contextmenu.jstree-apple-context a:hover,
|
||||
#vakata-contextmenu.jstree-apple-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
|
||||
#vakata-contextmenu.jstree-apple-context li.jstree-contextmenu-disabled a,
|
||||
#vakata-contextmenu.jstree-apple-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
|
||||
#vakata-contextmenu.jstree-apple-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
|
||||
#vakata-contextmenu.jstree-apple-context li ul { margin-left:-4px; }
|
||||
|
||||
/* TODO: IE6 support - the `>` selectors */
|
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 43 B |
@ -1,77 +0,0 @@
|
||||
/*
|
||||
* jsTree classic theme 1.0
|
||||
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
||||
* Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
|
||||
*/
|
||||
|
||||
.jstree-classic li,
|
||||
.jstree-classic ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
|
||||
.jstree-classic li { background-position:-90px 0; background-repeat:repeat-y; }
|
||||
.jstree-classic li.jstree-last { background:transparent; }
|
||||
.jstree-classic .jstree-open > ins { background-position:-72px 0; }
|
||||
.jstree-classic .jstree-closed > ins { background-position:-54px 0; }
|
||||
.jstree-classic .jstree-leaf > ins { background-position:-36px 0; }
|
||||
|
||||
.jstree-classic .jstree-hovered { background:#e7f4f9; border:1px solid #e7f4f9; padding:0 2px 0 1px; }
|
||||
.jstree-classic .jstree-clicked { background:navy; border:1px solid navy; padding:0 2px 0 1px; color:white; }
|
||||
.jstree-classic a .jstree-icon { background-position:-56px -19px; }
|
||||
.jstree-classic .jstree-open > a .jstree-icon { background-position:-56px -36px; }
|
||||
.jstree-classic a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
|
||||
|
||||
.jstree-classic.jstree-focused { background:white; }
|
||||
|
||||
.jstree-classic .jstree-no-dots li,
|
||||
.jstree-classic .jstree-no-dots .jstree-leaf > ins { background:transparent; }
|
||||
.jstree-classic .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
|
||||
.jstree-classic .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
|
||||
|
||||
.jstree-classic .jstree-no-icons a .jstree-icon { display:none; }
|
||||
|
||||
.jstree-classic .jstree-search { font-style:italic; }
|
||||
|
||||
.jstree-classic .jstree-no-icons .jstree-checkbox { display:inline-block; }
|
||||
.jstree-classic .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
|
||||
.jstree-classic .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
|
||||
.jstree-classic .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
|
||||
.jstree-classic .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
|
||||
.jstree-classic .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
|
||||
.jstree-classic .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
|
||||
.jstree-classic .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
|
||||
|
||||
#vakata-dragged.jstree-classic ins { background:transparent !important; }
|
||||
#vakata-dragged.jstree-classic .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
|
||||
#vakata-dragged.jstree-classic .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
|
||||
#jstree-marker.jstree-classic { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; }
|
||||
|
||||
.jstree-classic a.jstree-search { color:aqua; }
|
||||
.jstree-classic .jstree-locked a { color:silver; cursor:default; }
|
||||
|
||||
#vakata-contextmenu.jstree-classic-context,
|
||||
#vakata-contextmenu.jstree-classic-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
|
||||
#vakata-contextmenu.jstree-classic-context li { }
|
||||
#vakata-contextmenu.jstree-classic-context a { color:black; }
|
||||
#vakata-contextmenu.jstree-classic-context a:hover,
|
||||
#vakata-contextmenu.jstree-classic-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
|
||||
#vakata-contextmenu.jstree-classic-context li.jstree-contextmenu-disabled a,
|
||||
#vakata-contextmenu.jstree-classic-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
|
||||
#vakata-contextmenu.jstree-classic-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
|
||||
#vakata-contextmenu.jstree-classic-context li ul { margin-left:-4px; }
|
||||
|
||||
/* IE6 BEGIN */
|
||||
.jstree-classic li,
|
||||
.jstree-classic ins,
|
||||
#vakata-dragged.jstree-classic .jstree-invalid,
|
||||
#vakata-dragged.jstree-classic .jstree-ok,
|
||||
#jstree-marker.jstree-classic { _background-image:url("d.gif"); }
|
||||
.jstree-classic .jstree-open ins { _background-position:-72px 0; }
|
||||
.jstree-classic .jstree-closed ins { _background-position:-54px 0; }
|
||||
.jstree-classic .jstree-leaf ins { _background-position:-36px 0; }
|
||||
.jstree-classic .jstree-open a ins.jstree-icon { _background-position:-56px -36px; }
|
||||
.jstree-classic .jstree-closed a ins.jstree-icon { _background-position:-56px -19px; }
|
||||
.jstree-classic .jstree-leaf a ins.jstree-icon { _background-position:-56px -19px; }
|
||||
#vakata-contextmenu.jstree-classic-context ins { _display:none; }
|
||||
#vakata-contextmenu.jstree-classic-context li { _zoom:1; }
|
||||
.jstree-classic .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; }
|
||||
.jstree-classic .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; }
|
||||
.jstree-classic .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; }
|
||||
/* IE6 END */
|
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 132 B |
@ -1,84 +0,0 @@
|
||||
/*
|
||||
* jsTree default-rtl theme 1.0
|
||||
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
||||
* Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
|
||||
*/
|
||||
|
||||
.jstree-default-rtl li,
|
||||
.jstree-default-rtl ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
|
||||
.jstree-default-rtl li { background-position:-90px 0; background-repeat:repeat-y; }
|
||||
.jstree-default-rtl li.jstree-last { background:transparent; }
|
||||
.jstree-default-rtl .jstree-open > ins { background-position:-72px 0; }
|
||||
.jstree-default-rtl .jstree-closed > ins { background-position:-54px 0; }
|
||||
.jstree-default-rtl .jstree-leaf > ins { background-position:-36px 0; }
|
||||
|
||||
.jstree-default-rtl .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px; }
|
||||
.jstree-default-rtl .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px; }
|
||||
.jstree-default-rtl a .jstree-icon { background-position:-56px -19px; }
|
||||
.jstree-default-rtl a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
|
||||
|
||||
.jstree-default-rtl.jstree-focused { background:#ffffee; }
|
||||
|
||||
.jstree-default-rtl .jstree-no-dots li,
|
||||
.jstree-default-rtl .jstree-no-dots .jstree-leaf > ins { background:transparent; }
|
||||
.jstree-default-rtl .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
|
||||
.jstree-default-rtl .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
|
||||
|
||||
.jstree-default-rtl .jstree-no-icons a .jstree-icon { display:none; }
|
||||
|
||||
.jstree-default-rtl .jstree-search { font-style:italic; }
|
||||
|
||||
.jstree-default-rtl .jstree-no-icons .jstree-checkbox { display:inline-block; }
|
||||
.jstree-default-rtl .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
|
||||
.jstree-default-rtl .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
|
||||
.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
|
||||
.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
|
||||
.jstree-default-rtl .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
|
||||
.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
|
||||
.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
|
||||
|
||||
#vakata-dragged.jstree-default-rtl ins { background:transparent !important; }
|
||||
#vakata-dragged.jstree-default-rtl .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
|
||||
#vakata-dragged.jstree-default-rtl .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
|
||||
#jstree-marker.jstree-default-rtl { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; }
|
||||
|
||||
.jstree-default-rtl a.jstree-search { color:aqua; }
|
||||
.jstree-default-rtl .jstree-locked a { color:silver; cursor:default; }
|
||||
|
||||
#vakata-contextmenu.jstree-default-rtl-context,
|
||||
#vakata-contextmenu.jstree-default-rtl-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context li { }
|
||||
#vakata-contextmenu.jstree-default-rtl-context a { color:black; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context a:hover,
|
||||
#vakata-contextmenu.jstree-default-rtl-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context li.jstree-contextmenu-disabled a,
|
||||
#vakata-contextmenu.jstree-default-rtl-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context li ul { margin-left:-4px; }
|
||||
|
||||
/* IE6 BEGIN */
|
||||
.jstree-default-rtl li,
|
||||
.jstree-default-rtl ins,
|
||||
#vakata-dragged.jstree-default-rtl .jstree-invalid,
|
||||
#vakata-dragged.jstree-default-rtl .jstree-ok,
|
||||
#jstree-marker.jstree-default-rtl { _background-image:url("d.gif"); }
|
||||
.jstree-default-rtl .jstree-open ins { _background-position:-72px 0; }
|
||||
.jstree-default-rtl .jstree-closed ins { _background-position:-54px 0; }
|
||||
.jstree-default-rtl .jstree-leaf ins { _background-position:-36px 0; }
|
||||
.jstree-default-rtl a ins.jstree-icon { _background-position:-56px -19px; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context ins { _display:none; }
|
||||
#vakata-contextmenu.jstree-default-rtl-context li { _zoom:1; }
|
||||
.jstree-default-rtl .jstree-undetermined a .jstree-checkbox { _background-position:-18px -19px; }
|
||||
.jstree-default-rtl .jstree-checked a .jstree-checkbox { _background-position:-36px -19px; }
|
||||
.jstree-default-rtl .jstree-unchecked a .jstree-checkbox { _background-position:0px -19px; }
|
||||
/* IE6 END */
|
||||
|
||||
/* RTL part */
|
||||
.jstree-default-rtl .jstree-hovered, .jstree-default-rtl .jstree-clicked { padding:0 1px 0 2px; }
|
||||
.jstree-default-rtl li { background-image:url("dots.gif"); background-position: 100% 0px; }
|
||||
.jstree-default-rtl .jstree-checked > a > .jstree-checkbox { background-position:-36px -19px; margin-left:2px; }
|
||||
.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox { background-position:0px -19px; margin-left:2px; }
|
||||
.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox { background-position:-18px -19px; margin-left:2px; }
|
||||
.jstree-default-rtl .jstree-checked > a > .jstree-checkbox:hover { background-position:-36px -37px; }
|
||||
.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox:hover { background-position:0px -37px; }
|
||||
.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-18px -37px; }
|
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 7.5 KiB |
@ -1,74 +0,0 @@
|
||||
/*
|
||||
* jsTree default theme 1.0
|
||||
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
||||
* Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
|
||||
*/
|
||||
|
||||
.jstree-default li,
|
||||
.jstree-default ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
|
||||
.jstree-default li { background-position:-90px 0; background-repeat:repeat-y; }
|
||||
.jstree-default li.jstree-last { background:transparent; }
|
||||
.jstree-default .jstree-open > ins { background-position:-72px 0; }
|
||||
.jstree-default .jstree-closed > ins { background-position:-54px 0; }
|
||||
.jstree-default .jstree-leaf > ins { background-position:-36px 0; }
|
||||
|
||||
.jstree-default .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px; }
|
||||
.jstree-default .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px; }
|
||||
.jstree-default a .jstree-icon { background-position:-56px -19px; }
|
||||
.jstree-default a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
|
||||
|
||||
.jstree-default.jstree-focused { background:#ffffee; }
|
||||
|
||||
.jstree-default .jstree-no-dots li,
|
||||
.jstree-default .jstree-no-dots .jstree-leaf > ins { background:transparent; }
|
||||
.jstree-default .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
|
||||
.jstree-default .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
|
||||
|
||||
.jstree-default .jstree-no-icons a .jstree-icon { display:none; }
|
||||
|
||||
.jstree-default .jstree-search { font-style:italic; }
|
||||
|
||||
.jstree-default .jstree-no-icons .jstree-checkbox { display:inline-block; }
|
||||
.jstree-default .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
|
||||
.jstree-default .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
|
||||
.jstree-default .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
|
||||
.jstree-default .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
|
||||
.jstree-default .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
|
||||
.jstree-default .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
|
||||
.jstree-default .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
|
||||
|
||||
#vakata-dragged.jstree-default ins { background:transparent !important; }
|
||||
#vakata-dragged.jstree-default .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
|
||||
#vakata-dragged.jstree-default .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
|
||||
#jstree-marker.jstree-default { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; }
|
||||
|
||||
.jstree-default a.jstree-search { color:aqua; }
|
||||
.jstree-default .jstree-locked a { color:silver; cursor:default; }
|
||||
|
||||
#vakata-contextmenu.jstree-default-context,
|
||||
#vakata-contextmenu.jstree-default-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
|
||||
#vakata-contextmenu.jstree-default-context li { }
|
||||
#vakata-contextmenu.jstree-default-context a { color:black; }
|
||||
#vakata-contextmenu.jstree-default-context a:hover,
|
||||
#vakata-contextmenu.jstree-default-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
|
||||
#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a,
|
||||
#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
|
||||
#vakata-contextmenu.jstree-default-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
|
||||
#vakata-contextmenu.jstree-default-context li ul { margin-left:-4px; }
|
||||
|
||||
/* IE6 BEGIN */
|
||||
.jstree-default li,
|
||||
.jstree-default ins,
|
||||
#vakata-dragged.jstree-default .jstree-invalid,
|
||||
#vakata-dragged.jstree-default .jstree-ok,
|
||||
#jstree-marker.jstree-default { _background-image:url("d.gif"); }
|
||||
.jstree-default .jstree-open ins { _background-position:-72px 0; }
|
||||
.jstree-default .jstree-closed ins { _background-position:-54px 0; }
|
||||
.jstree-default .jstree-leaf ins { _background-position:-36px 0; }
|
||||
.jstree-default a ins.jstree-icon { _background-position:-56px -19px; }
|
||||
#vakata-contextmenu.jstree-default-context ins { _display:none; }
|
||||
#vakata-contextmenu.jstree-default-context li { _zoom:1; }
|
||||
.jstree-default .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; }
|
||||
.jstree-default .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; }
|
||||
.jstree-default .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; }
|
||||
/* IE6 END */
|
Before Width: | Height: | Size: 1.8 KiB |