68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
/*!
|
|
"shortcut" : 113,
|
|
"shortcut_label" : 'F2',
|
|
"icon" : "glyphicon glyphicon-leaf",
|
|
*/
|
|
|
|
/*!
|
|
'themes' : {
|
|
'name' : this.get_theme(),
|
|
'icons' : this._data.core.themes.icons,
|
|
'dots' : this._data.core.themes.dots
|
|
},
|
|
*/
|
|
|
|
/*!
|
|
.on("mousedown.jstree touchstart.jstree", ".jstree-wholerow", function (e) {
|
|
if(e.target === e.currentTarget) {
|
|
var a = $(e.currentTarget).closest(".jstree-node").children(".jstree-anchor");
|
|
e.target = a[0];
|
|
a.trigger(e);
|
|
}
|
|
})
|
|
*/
|
|
|
|
/*!
|
|
if(!('oncontextmenu' in document.body) && ('ontouchstart' in document.body)) {
|
|
var el = null, tm = null;
|
|
this.element
|
|
.on("touchstart", ".jstree-anchor", function (e) {
|
|
el = e.currentTarget;
|
|
tm = +new Date();
|
|
$(document).one("touchend", function (e) {
|
|
e.target = document.elementFromPoint(e.originalEvent.targetTouches[0].pageX - window.pageXOffset, e.originalEvent.targetTouches[0].pageY - window.pageYOffset);
|
|
e.currentTarget = e.target;
|
|
tm = ((+(new Date())) - tm);
|
|
if(e.target === el && tm > 600 && tm < 1000) {
|
|
e.preventDefault();
|
|
$(el).trigger('contextmenu', e);
|
|
}
|
|
el = null;
|
|
tm = null;
|
|
});
|
|
});
|
|
}
|
|
*/
|
|
|
|
/*!
|
|
oi = obj.children("i:visible"),
|
|
ai = a.children("i:visible"),
|
|
w1 = oi.width() * oi.length,
|
|
w2 = ai.width() * ai.length,
|
|
*/
|
|
|
|
/*!
|
|
* if using jslint please allow for the jQuery global and use following options:
|
|
* jslint: loopfunc: true, browser: true, ass: true, bitwise: true, continue: true, nomen: true, plusplus: true, regexp: true, unparam: true, todo: true, white: true
|
|
*/
|
|
|
|
/*!
|
|
* jsTree 3.3.12
|
|
* http://jstree.com/
|
|
*
|
|
* Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
|
|
*
|
|
* Licensed same as jquery - under the terms of the MIT License
|
|
* http://www.opensource.org/licenses/mit-license.php
|
|
*/
|