Lines Matching refs:core

102 		var tmp = new $.jstree.core(++instance_counter),
131 $.jstree.core = function (id) {
136 core : { class in AnonymousFunctiona82bfad20500._data
273 $.jstree.defaults.core = {
446 $.jstree.core.prototype = {
498 this._data.core.ready = false;
499 this._data.core.loaded = false;
500 this._data.core.rtl = (this.element.css("direction") === "rtl");
501 this.element[this._data.core.rtl ? 'addClass' : 'removeClass']("jstree-rtl");
503 if(this.settings.core.multiple) {
518 this._data.core.original_container_html = this.element.find(" > ul > li").clone(true);
519 this._data.core.original_container_html
527 this._data.core.li_height = this.get_container_ul().children("li").first().height() || 24;
604 if(this.settings.core.dblclick_toggle) {
617 if(this._data.core.rtl) {
700 if(data.node.id === '#' && !this._data.core.loaded) {
701 this._data.core.loaded = true;
712 if(!this._data.core.ready) {
715 this._data.core.ready = true;
716 if(this._data.core.selected.length) {
717 if(this.settings.core.expand_selected_onload) {
719 for(i = 0, j = this._data.core.selected.length; i < j; i++) {
720 tmp = tmp.concat(this._model.data[this._data.core.selected[i]].parents);
727 this.trigger('changed', { 'action' : 'ready', 'selected' : this._data.core.selected });
800 var s = this.settings.core.themes;
801 this._data.core.themes.dots = s.dots;
802 this._data.core.themes.stripes = s.stripes;
803 this._data.core.themes.icons = s.icons;
808 this[ this._data.core.themes.dots ? "show_dots" : "hide_dots" ]();
809 this[ this._data.core.themes.icons ? "show_icons" : "hide_icons" ]();
810 this[ this._data.core.themes.stripes ? "show_stripes" : "hide_stripes" ]();
813 this._data.core.focused = null;
820 this._data.core.focused = tmp.id;
827 if(+(new Date()) - was_click > 500 && !this._data.core.focused) {
887 var a = this.settings.core.strings;
1195 …this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.children_d[k]);
1202 …this.trigger('changed', { 'action' : 'load_node', 'node' : obj, 'selected' : this._data.core.selec…
1311 var s = this.settings.core.data, t;
1315 …return this._append_html_data(obj, this._data.core.original_container_html.clone(true), function (…
1355 …this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : '…
1356 this.settings.core.error.call(this, this._data.core.last_error);
1361 …this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : '…
1362 this.settings.core.error.call(this, this._data.core.last_error);
1372 …this._data.core.last_error = { 'error' : 'nodata', 'plugin' : 'core', 'id' : 'core_05', 'reason' :…
1373 this.settings.core.error.call(this, this._data.core.last_error);
1385 …this._data.core.last_error = { 'error' : 'nodata', 'plugin' : 'core', 'id' : 'core_06', 'reason' :…
1386 this.settings.core.error.call(this, this._data.core.last_error);
1423 s = this._data.core.selected.length,
1456 if(this._data.core.selected.length !== s) {
1457 this.trigger('changed', { 'action' : 'model', 'selected' : this._data.core.selected });
1490 'sel' : this._data.core.selected
1768 … var i, j, a = rslt.add, r = rslt.sel, s = this._data.core.selected.slice(), m = this._model.data;
1786 this._data.core.selected = this._data.core.selected.concat(rslt.add);
1800 this.trigger('changed', { 'action' : 'model', 'selected' : this._data.core.selected });
1804 if(this.settings.core.worker && window.Blob && window.URL && window.Worker) {
1814 if(!this._data.core.working || force_processing) {
1815 this._data.core.working = true;
1820 if(this._data.core.worker_queue.length) {
1821 this._append_json_data.apply(this, this._data.core.worker_queue.shift());
1824 this._data.core.working = false;
1828 if(this._data.core.worker_queue.length) {
1829 this._append_json_data.apply(this, this._data.core.worker_queue.shift());
1832 this._data.core.working = false;
1840 this._data.core.worker_queue.push([dom, data, cb, true]);
1845 if(this._data.core.worker_queue.length) {
1846 this._append_json_data.apply(this, this._data.core.worker_queue.shift());
1849 this._data.core.working = false;
1913 data.text = this.settings.core.force_text ? tmp.text() : tmp.html();
1965 this._data.core.selected.push(data.id);
2063 this._data.core.selected.push(tmp.id);
2173 this._data.core.selected.push(tmp.id);
2185 f = document.createElement('UL'), tmp, i, j, fe = this._data.core.focused;
2204 this._data.core.focused = null;
2389 if(this.settings.core.force_text) {
2471 animation = animation === undefined ? this.settings.core.animation : animation;
2589 animation = animation === undefined ? this.settings.core.animation : animation;
2799 …this._data.core.last_clicked = this._data.core.last_clicked && this._data.core.last_clicked.id !==…
2800 …if(this._data.core.last_clicked && !this._data.core.last_clicked.state.selected) { this._data.core
2801 …_data.core.last_clicked && this._data.core.selected.length) { this._data.core.last_clicked = this.…
2803core.multiple || (!e.metaKey && !e.ctrlKey && !e.shiftKey) || (e.shiftKey && (!this._data.core.las…
2804 …if(!this.settings.core.multiple && (e.metaKey || e.ctrlKey || e.shiftKey) && this.is_selected(obj)…
2810 this._data.core.last_clicked = this.get_node(obj);
2816 l = this._data.core.last_clicked.id,
2817 p = this.get_node(this._data.core.last_clicked.parent).children,
2835 …on' : 'select_node', 'node' : this.get_node(obj), 'selected' : this._data.core.selected, 'event' :…
2924 this._data.core.selected.push(obj.id);
2939 … this.trigger('select_node', { 'node' : obj, 'selected' : this._data.core.selected, 'event' : e });
2950 …this.trigger('changed', { 'action' : 'select_node', 'node' : obj, 'selected' : this._data.core.sel…
2977 this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.id);
2989 …this.trigger('deselect_node', { 'node' : obj, 'selected' : this._data.core.selected, 'event' : e }…
2991 …ged', { 'action' : 'deselect_node', 'node' : obj, 'selected' : this._data.core.selected, 'event' :…
3002 var tmp = this._data.core.selected.concat([]), i, j;
3003 this._data.core.selected = this._model.data['#'].children_d.concat();
3004 for(i = 0, j = this._data.core.selected.length; i < j; i++) {
3005 if(this._model.data[this._data.core.selected[i]]) {
3006 this._model.data[this._data.core.selected[i]].state.selected = true;
3016 this.trigger('select_all', { 'selected' : this._data.core.selected });
3018 …this.trigger('changed', { 'action' : 'select_all', 'selected' : this._data.core.selected, 'old_sel…
3028 var tmp = this._data.core.selected.concat([]), i, j;
3029 for(i = 0, j = this._data.core.selected.length; i < j; i++) {
3030 if(this._model.data[this._data.core.selected[i]]) {
3031 this._model.data[this._data.core.selected[i]].state.selected = false;
3034 this._data.core.selected = [];
3043 this.trigger('deselect_all', { 'selected' : this._data.core.selected, 'node' : tmp });
3045 …this.trigger('changed', { 'action' : 'deselect_all', 'selected' : this._data.core.selected, 'old_s…
3068 …return full ? $.map(this._data.core.selected, $.proxy(function (i) { return this.get_node(i); }, t…
3141 state.core.open.push(i);
3144 state.core.selected.push(i);
3161 if(state.core) {
3163 if(state.core.open) {
3164 if(!$.isArray(state.core.open) || !state.core.open.length) {
3165 delete state.core.open;
3169 this._load_nodes(state.core.open, function (nodes) {
3171 delete state.core.open;
3177 if(state.core.scroll) {
3178 if(state.core.scroll && state.core.scroll.left !== undefined) {
3179 this.element.scrollLeft(state.core.scroll.left);
3181 if(state.core.scroll && state.core.scroll.top !== undefined) {
3182 this.element.scrollTop(state.core.scroll.top);
3184 delete state.core.scroll;
3188 if(state.core.selected) {
3191 $.each(state.core.selected, function (i, v) {
3194 delete state.core.selected;
3203 if($.isEmptyObject(state.core)) {
3204 delete state.core;
3232 this._data.core.state = forget_state === true ? {} : this.get_state();
3233 …state && $.isFunction(forget_state)) { this._data.core.state = forget_state.call(this, this._data.
3256 this.set_state($.extend(true, {}, this._data.core.state), function () {
3265 this._data.core.state = null;
3277 var opened = [], to_load = [], s = this._data.core.selected.concat([]);
3283 this.select_node(this._data.core.selected);
3318 i = $.inArray(obj.id, this._data.core.selected);
3319 if(i !== -1) { this._data.core.selected[i] = id; }
3494 this.settings.core.error.call(this, this._data.core.last_error);
3552 this.settings.core.error.call(this, this._data.core.last_error);
3589 this.settings.core.error.call(this, this._data.core.last_error);
3606 pos = $.inArray(tmp[k], this._data.core.selected);
3608 this._data.core.selected = $.vakata.array_remove(this._data.core.selected, pos);
3621 …this.trigger('changed', { 'action' : 'delete_node', 'node' : obj, 'selected' : this._data.core.sel…
3644 chc = this.settings.core.check_callback;
3647 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_01', 'reason' : …
3654 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_02', 'reason' : …
3659 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_03', 'reason' : …
3670 return this._data.core.last_error;
3755 this.settings.core.error.call(this, this._data.core.last_error);
3919 this.settings.core.error.call(this, this._data.core.last_error);
3981 if(!obj) { obj = this._data.core.selected.concat(); }
4008 if(!obj) { obj = this._data.core.selected.concat(); }
4095 if(this.settings.core.check_callback === false) {
4096 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_07', 'reason' : …
4097 this.settings.core.error.call(this, this._data.core.last_error);
4106 rtl = this._data.core.rtl;
4127 "height" : (this._data.core.li_height) + "px",
4128 "lineHeight" : (this._data.core.li_height) + "px",
4139 …if(this.rename_node(obj, $('<div></div>').text(v)[this.settings.core.force_text ? 'text' : 'html']…
4192 var dir = this.settings.core.themes.dir;
4200 if(this._data.core.themes.name) {
4201 this.element.removeClass('jstree-' + this._data.core.themes.name);
4203 this._data.core.themes.name = theme_name;
4205 …this.element[this.settings.core.themes.responsive ? 'addClass' : 'removeClass' ]('jstree-' + theme…
4219 get_theme : function () { return this._data.core.themes.name; },
4226 if(this._data.core.themes.variant) {
4227 …this.element.removeClass('jstree-' + this._data.core.themes.name + '-' + this._data.core.themes.va…
4229 this._data.core.themes.variant = variant_name;
4231 …this.element.addClass('jstree-' + this._data.core.themes.name + '-' + this._data.core.themes.varia…
4239 get_theme_variant : function () { return this._data.core.themes.variant; },
4244 …show_stripes : function () { this._data.core.themes.stripes = true; this.get_container_ul().addCla…
4249 …hide_stripes : function () { this._data.core.themes.stripes = false; this.get_container_ul().remov…
4254 …toggle_stripes : function () { if(this._data.core.themes.stripes) { this.hide_stripes(); } else { …
4259 …show_dots : function () { this._data.core.themes.dots = true; this.get_container_ul().removeClass(…
4264 …hide_dots : function () { this._data.core.themes.dots = false; this.get_container_ul().addClass("j…
4269 …toggle_dots : function () { if(this._data.core.themes.dots) { this.hide_dots(); } else { this.show…
4274 …show_icons : function () { this._data.core.themes.icons = true; this.get_container_ul().removeClas…
4279 …hide_icons : function () { this._data.core.themes.icons = false; this.get_container_ul().addClass(…
4284 …toggle_icons : function () { if(this._data.core.themes.icons) { this.hide_icons(); } else { this.s…
4867 …this.show_checkboxes = function () { this._data.core.themes.checkboxes = true; this.get_container_…
4873 …this.hide_checkboxes = function () { this._data.core.themes.checkboxes = false; this.get_container…
4879 …this.toggle_checkboxes = function () { if(this._data.core.themes.checkboxes) { this.hide_checkboxe…
5410 y = o.top + this._data.core.li_height;
5870 if(this.settings.core.force_text) {
5877 …this.get_theme() + '-' + this.get_theme_variant() + ' ' + ( this.settings.core.themes.responsive ?…
5912 …marker.attr('class', 'jstree-' + ins.get_theme() + ( ins.settings.core.themes.responsive ? ' jstre…
5914 … + ins.get_theme() + '-' + ins.get_theme_variant() + ' ' + ( ins.settings.core.themes.responsive ?…
6029 i.settings.core.error.call(this, laster);
6549 …this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'search', 'id' : 'search_01', 'reason'…
6550 this.settings.core.error.call(this, this._data.core.last_error);
7079 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_01', 'reason' …
7083 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_02', 'reason' …
7096 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_03', 'reason' …
7215 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_01', 'reason…
7221 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_04', 'reason…
7227 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_02', 'reason…
7233 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_03', 'reason…
7362 …if($.inArray(obj.id, this._data.core.selected) !== -1) { tmp.className += ' jstree-wholerow-clicke…
7363 …if(this._data.core.focused && this._data.core.focused === obj.id) { tmp.className += ' jstree-whol…
7374 var c = { core : {}, plugins : [] }, i; property in AnonymousFunctiona82bfad214200.c
7383 for(i in $.jstree.defaults.core) {
7384 if($.jstree.defaults.core.hasOwnProperty(i) && this.attributes[i]) {
7385 c.core[i] = JSON.parse(this.getAttribute(i)) || this.getAttribute(i);