Lines Matching refs:id

131 	$.jstree.core = function (id) {  argument
132 this._id = id;
173 if(needle && needle.id && (!needle.tagName || !needle.nodeType)) { needle = needle.id; }
476 id : '#', property in AnonymousFunctiona82bfad20d00._model.data.#
639 if(o && o.id !== '#') { this.get_node(o, true).children('.jstree-anchor').focus(); }
700 if(data.node.id === '#' && !this._data.core.loaded) {
703 this.element.attr('aria-activedescendant',this._firstChild(this.get_container_ul()[0]).id);
819 if(tmp && tmp.id) {
820 this._data.core.focused = tmp.id;
942 if(obj && obj.id) {
943 obj = obj.id;
967 …obj = obj.id === '#' ? this.element : $('#' + obj.id.replace($.jstree.idregex,'\\$&'), this.elemen…
982 if(!obj || obj.id === '#' || !obj.parents) {
986 p.push(ids ? obj.id : obj.text);
1087 if(!obj || obj.id === '#') {
1209 obj = this._model.data[obj.id];
1276 c = m[obj.id].children_d,
1279 to_load.push(obj.id);
1314 if(obj.id === '#') {
1355 …ore_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : x }) }; property in _data._data._data
1361 …ore_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id, 'xhr' : f }) }; property in _data._data._data
1366 if(obj.id === '#') {
1372 …, 'id' : 'core_05', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id }) };
1379 if(obj.id === '#') {
1385 …, 'id' : 'core_06', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : obj.id }) };
1402 this._model.changed.push(obj.id);
1418 par = dom.id,
1486 'par' : dom.id,
1510 var tid = d.id.toString(),
1513 id : tid, property in AnonymousFunctiona82bfad25300.func.parse_flat.tmp
1522 li_attr : { id : false }, property in AnonymousFunctiona82bfad25300.func.parse_flat.tmp.li_attr
1561 if(!tmp.li_attr.id) {
1562 tmp.li_attr.id = tid;
1576 m[tmp.id] = tmp;
1578 c = parse_flat(m[tmp.children[i]], tmp.id, ps);
1587 m[tmp.id].original = d;
1589 add.push(tmp.id);
1591 return tmp.id;
1603 id : false,
1612 li_attr : { id : false },
1621 if(d && d.id) { tmp.id = d.id.toString(); }
1653 if(tmp.li_attr.id && !tmp.id) {
1654 tmp.id = tmp.li_attr.id.toString();
1656 if(!tmp.id) {
1657 tmp.id = tid;
1659 if(!tmp.li_attr.id) {
1660 tmp.li_attr.id = tmp.id;
1671 c = parse_nest(d.children[i], tmp.id, ps);
1688 m[tmp.id] = tmp;
1690 add.push(tmp.id);
1692 return tmp.id;
1695 if(dat.length && dat[0].id !== undefined && dat[0].parent !== undefined) {
1702 m[dat[i].id.toString()] = dat[i];
1706 m[dat[i].parent.toString()].children.push(dat[i].id.toString());
1708 p.children_d.push(dat[i].id.toString());
1872 id : false, property in AnonymousFunctiona82bfad25700.data
1881 li_attr : { id : false }, property in AnonymousFunctiona82bfad25700.data.li_attr
1896 data.id = v.toString();
1940 data.id = data.li_attr.id ? data.li_attr.id.toString() : tid;
1943 c = this._parse_model_from_html($(v), data.id, ps);
1963 m[data.id] = data;
1965 this._data.core.selected.push(data.id);
1967 return data.id;
1982 var tid = d.id.toString(),
1987 id : tid, property in AnonymousFunctiona82bfad25b00.tmp
1996 li_attr : { id : false }, property in AnonymousFunctiona82bfad25b00.tmp.li_attr
2035 if(!tmp.li_attr.id) {
2036 tmp.li_attr.id = tid;
2050 m[tmp.id] = tmp;
2052 c = this._parse_model_from_flat_json(m[tmp.children[i]], tmp.id, ps);
2061 m[tmp.id].original = d;
2063 this._data.core.selected.push(tmp.id);
2065 return tmp.id;
2086 id : false,
2095 li_attr : { id : false },
2104 if(d && d.id) { tmp.id = d.id.toString(); }
2136 if(tmp.li_attr.id && !tmp.id) {
2137 tmp.id = tmp.li_attr.id.toString();
2139 if(!tmp.id) {
2140 tmp.id = tid;
2142 if(!tmp.li_attr.id) {
2143 tmp.li_attr.id = tmp.id;
2154 c = this._parse_model_from_json(d.children[i], tmp.id, ps);
2171 m[tmp.id] = tmp;
2173 this._data.core.selected.push(tmp.id);
2175 return tmp.id;
2245 if(obj.id === '#') { return this.redraw(true); }
2287 if(obj.id === '#') { return this.redraw(true); }
2289id) : this.element[0].querySelector('#' + ("0123456789".indexOf(obj.id[0]) !== -1 ? '\\3' + obj.id
2298 ind = $.inArray(obj.id, par === null ? m['#'].children : m[obj.parent].children);
2337 if(!obj.a_attr.id) {
2338 obj.a_attr.id = obj.id + '_anchor';
2342 node.setAttribute('aria-labelledby', obj.a_attr.id);
2354 if(obj.parent !== null && m[obj.parent].children[m[obj.parent].children.length - 1] === obj.id) {
2357 node.id = obj.id;
2445 this.open_node(obj.id, false, 0);
2468 if(!obj || obj.id === '#') {
2555 if(!obj || obj.id === '#') {
2564 return $('#' + obj.id.replace($.jstree.idregex,'\\$&'), this.element);
2583 if(!obj || obj.id === '#') {
2659 var dom = obj.id === '#' ? this.get_container_ul() : this.get_node(obj, true), i, j, _this;
2699 var dom = obj.id === '#' ? this.get_container_ul() : this.get_node(obj, true),
2743 if(!obj || obj.id === '#') {
2772 if(!obj || obj.id === '#') {
2799 …ast_clicked && this._data.core.last_clicked.id !== undefined ? this.get_node(this._data.core.last_…
2815 var o = this.get_node(obj).id,
2816 l = this._data.core.last_clicked.id,
2877 setTimeout(function () { t.attr('aria-activedescendant', obj[0].id); }, 0);
2918 if(!obj || obj.id === '#') {
2924 this._data.core.selected.push(obj.id);
2971 if(!obj || obj.id === '#') {
2977 this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.id);
3056 if(!obj || obj.id === '#') {
3080 obj[tmp[i].id] = tmp[i];
3108 obj.push(tmp[i].id);
3237 id : '#', property in _model._model.#
3254 this.element.attr('aria-activedescendant',this._firstChild(this.get_container_ul()[0]).id);
3276 if(!obj || obj.id === '#') { return false; }
3278 to_load.push(obj.id);
3279 if(obj.state.opened === true) { opened.push(obj.id); }
3280 this.get_node(obj, true).find('.jstree-open').each(function() { opened.push(this.id); });
3301 set_id : function (obj, id) { argument
3303 if(!obj || obj.id === '#') { return false; }
3305 id = id.toString();
3307 m[obj.parent].children[$.inArray(obj.id, m[obj.parent].children)] = id;
3309 m[obj.parents[i]].children_d[$.inArray(obj.id, m[obj.parents[i]].children_d)] = id;
3313 m[obj.children[i]].parent = id;
3316 m[obj.children_d[i]].parents[$.inArray(obj.id, m[obj.children_d[i]].parents)] = id;
3318 i = $.inArray(obj.id, this._data.core.selected);
3319 if(i !== -1) { this._data.core.selected[i] = id; }
3321 i = this.get_node(obj.id, true);
3323 …i.attr('id', id).children('.jstree-anchor').attr('id', id + '_anchor').end().attr('aria-labelledby…
3324 if(this.element.attr('aria-activedescendant') === obj.id) {
3325 this.element.attr('aria-activedescendant', id);
3328 delete m[obj.id];
3329 obj.id = id;
3330 obj.li_attr.id = id;
3331 m[id] = obj;
3342 return (!obj || obj.id === '#') ? false : obj.text;
3363 if(!obj || obj.id === '#') { return false; }
3366 this.redraw_node(obj.id);
3395 'id' : obj.id, property in AnonymousFunctiona82bfad28e00.tmp
3418 delete tmp.id;
3419 if(tmp.li_attr && tmp.li_attr.id) {
3420 delete tmp.li_attr.id;
3422 if(tmp.a_attr && tmp.a_attr.id) {
3423 delete tmp.a_attr.id;
3426 if(options && options.flat && obj.id !== '#') {
3439 return options && options.flat ? flat : (obj.id === '#' ? tmp.children : tmp);
3465 if(par.id === '#') {
3472 pos = $.inArray(par.id, tmp.children);
3477 pos = $.inArray(par.id, tmp.children) + 1;
3492 if(!node.id) { node.id = true; }
3497 if(node.id === true) { delete node.id; }
3498 node = this._parse_model_from_json(node, par.id, par.parents.concat());
3504 this.trigger('model', { "nodes" : dpc, "parent" : par.id });
3515 tmp[pos] = node.id;
3528 …this.trigger('create_node', { "node" : this.get_node(node), "parent" : par.id, "position" : pos });
3529 return node.id;
3549 if(!obj || obj.id === '#') { return false; }
3584 if(!obj || obj.id === '#') { return false; }
3586 pos = $.inArray(obj.id, par.children);
3596 tmp.push(obj.id);
3619 this.trigger('delete_node', { "node" : obj, "parent" : par.id });
3621 …action' : 'delete_node', 'node' : obj, 'selected' : this._data.core.selected, 'parent' : par.id });
3641 obj = obj && obj.id ? obj : this.get_node(obj);
3642 par = par && par.id ? par : this.get_node(par);
3646 …if((!more || !more.is_multi) && (obj.id === par.id || $.inArray(obj.id, par.children) === pos || $…
3647 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
3654 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
3659 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
3710 obj = obj && obj.id ? obj : this.get_node(obj);
3712 if(!obj || obj.id === '#') { return false; }
3715 …new_par = (!pos.toString().match(/^(before|after)$/) || par.id === '#') ? par : this.get_node(par.…
3716 old_ins = origin ? origin : (this._model.data[obj.id] ? this : $.jstree.reference(obj.id));
3718 …del.data[old_par] && old_ins._model.data[old_par].children ? $.inArray(obj.id, old_ins._model.data…
3720 obj = old_ins._model.data[obj.id];
3731 if(par.id === '#') {
3737 pos = $.inArray(par.id, new_par.children);
3740 pos = $.inArray(par.id, new_par.children) + 1;
3758 if(obj.parent === new_par.id) {
3760 tmp = $.inArray(obj.id, dpc);
3769 tmp[pos] = obj.id;
3771 this._node_changed(new_par.id);
3772 this.redraw(new_par.id === '#');
3777 tmp.push(obj.id);
3788 …data[old_par].children = $.vakata.array_remove_item(old_ins._model.data[old_par].children, obj.id);
3798 dpc[pos] = obj.id;
3800 new_par.children_d.push(obj.id);
3804 obj.parent = new_par.id;
3806 tmp.unshift(new_par.id);
3817 if(old_par === '#' || new_par.id === '#') {
3822 this._node_changed(new_par.id);
3842 …this.trigger('move_node', { "node" : obj, "parent" : new_par.id, "position" : pos, "old_parent" : …
3843 return obj.id;
3883 obj = obj && obj.id ? obj : this.get_node(obj);
3884 if(!obj || obj.id === '#') { return false; }
3887 …new_par = (!pos.toString().match(/^(before|after)$/) || par.id === '#') ? par : this.get_node(par.…
3888 old_ins = origin ? origin : (this._model.data[obj.id] ? this : $.jstree.reference(obj.id));
3892 obj = old_ins._model.data[obj.id];
3895 if(par.id === '#') {
3901 pos = $.inArray(par.id, new_par.children);
3904 pos = $.inArray(par.id, new_par.children) + 1;
3924 if(node.id === true) { delete node.id; }
3925 node = this._parse_model_from_json(node, new_par.id, new_par.parents.concat());
3932 this.trigger('model', { "nodes" : dpc, "parent" : new_par.id });
3942 dpc[pos] = tmp.id;
3944 new_par.children_d.push(tmp.id);
3947 if(new_par.id === '#') {
3951 this._node_changed(new_par.id);
3954 this.redraw(new_par.id === '#');
3971id, "position" : pos, "old_parent" : old_par, "old_position" : old_ins && old_ins._id && old_par &…
3972 return tmp.id;
3987 if(o && o.id && o.id !== '#') { tmp.push(o); }
4014 if(o && o.id && o.id !== '#') { tmp.push(o); }
4063 this.trigger('paste', { "parent" : obj.id, "node" : ccp_node, "mode" : ccp_mode });
4301 if(!obj || obj.id === '#') { return false; }
4332 return (!obj || obj.id === '#') ? false : obj.icon;
4557 while(p && p.id !== '#') {
4564 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4601 while(par && par.id !== '#') {
4608 this._data[ t ? 'core' : 'checkbox' ].selected.push(par.id);
4695 while(p && p.id !== '#') {
4702 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4723 while(p && p.id !== '#') {
4730 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4743 while(p && p.id !== '#') {
4751 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4761 …box' ].selected = $.vakata.array_remove_item(this._data[ t ? 'core' : 'checkbox' ].selected, p.id);
4800 if(o[tmp.id] === undefined && tmp.id !== '#') {
4801 o[tmp.id] = true;
4802 p.push(tmp.id);
4816 if(o[tmp2.id] === undefined && tmp2.id !== '#') {
4817 o[tmp2.id] = true;
4818 p.push(tmp2.id);
4852 …if(!this.settings.checkbox.tie_selection && this._model.data[obj.id].state.checked) { tmp.classNam…
4940 if(!obj || obj.id === '#') {
4946 this._data.checkbox.selected.push(obj.id);
4980 if(!obj || obj.id === '#') {
4986 this._data.checkbox.selected = $.vakata.array_remove_item(this._data.checkbox.selected, obj.id);
5063 if(!obj || obj.id === '#') { return false; }
5089 obj[tmp[i].id] = tmp[i];
5119 obj.push(tmp[i].id);
5401 if(!obj || obj.id === '#') { return false; }
5873 if(obj && obj.id && obj.id !== "#" && (e.which === 1 || e.type === "touchstart") &&
5877 …his.get_node(obj,true), 'nodes' : mlt > 1 ? this.get_top_selected() : [obj.id] }, '<div id="jstree…
5901 if(data.event.target.id && data.event.target.id === 'jstree-marker') {
5961 p = tm.id;
6384 var d = this._data.massload[obj.id];
6388 delete this._data.massload[obj.id];
6517 inside = inside && inside.id ? inside.id : null;
6640 t._data.search.opn.push(v[0].id);
7027 tmp[i].type = tmp[i].id && m[tmp[i].id] && m[tmp[i].id].type ? m[tmp[i].id].type : "default";
7029 delete tmp[i].id;
7030 if(tmp[i].li_attr && tmp[i].li_attr.id) {
7031 delete tmp[i].li_attr.id;
7033 if(tmp[i].a_attr && tmp[i].a_attr.id) {
7034 delete tmp[i].a_attr.id;
7040 tmp.type = tmp.id && m[tmp.id] && m[tmp.id].type ? m[tmp.id].type : "default";
7054 delete tmp.id;
7055 if(tmp.li_attr && tmp.li_attr.id) {
7056 delete tmp.li_attr.id;
7058 if(tmp.a_attr && tmp.a_attr.id) {
7059 delete tmp.a_attr.id;
7068 obj = obj && obj.id ? obj : this.get_node(obj);
7069 par = par && par.id ? par : this.get_node(par);
7070 …var m = obj && obj.id ? (more && more.origin ? more.origin : $.jstree.reference(obj.id)) : null, t…
7076 if(chk !== 'move_node' || $.inArray(obj.id, par.children) === -1) {
7079 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
7083 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
7096 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
7198 obj = obj && obj.id ? obj : this.get_node(obj);
7199 par = par && par.id ? par : this.get_node(par);
7215 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
7221 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
7227 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
7231 i = ( (obj.parent === par.id && (!more || !more.is_multi)) || $.inArray(n, c) === -1);
7233 …ify({ 'chk' : chk, 'pos' : pos, 'obj' : obj && obj.id ? obj.id : false, 'par' : par && par.id ? pa… property in _data._data._data
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…