PageSourceSearch

https://web.rosknroll.fi/rosknroll/js/dhtmlxSuite/sources/dhtmlxGr…/codebase/excells/dhtmlxgrid_excell_tree.js

js rosknroll.fi collected 2026-09-26 03:00:13 UTC 2,010 bytes, 70 lines download raw bytes

1/*
2Product Name: dhtmlxSuite 
3Version: 5.1.0 
4Edition: Professional 
5License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact [email protected]
6Copyright UAB Dinamenta http://www.dhtmlx.com
7*/
8
9
10function eXcell_stree(cell){
11	if (cell){
12		this.cell = cell;
13    	this.grid = this.cell.parentNode.grid;
14    
15    	if (!this.grid._sub_trees) return;
16    	this._sub=this.grid._sub_trees[cell._cellIndex];
17    	if (!this._sub) return;
18    	this._sub=this._sub[0];
19    }
20	
21	this.getValue = function(){
22		return this.cell._val;
23	}
24	this.setValue = function(val){
25		this.cell._val=val;
26		val = this._sub.getItemText(this.cell._val);
27		this.setCValue((val||" "),val);
28	}
29	this.edit = function(){
30		this._sub.parentObject.style.display='block';
31		var arPos = this.grid.getPosition(this.cell);//,this.grid.objBox
32		this._sub.parentObject.style.top=arPos[1]+"px";
33		this._sub.parentObject.style.left=arPos[0]+"px";
34		this._sub.parentObject.style.position="absolute";
35		
36		var a=this.grid.editStop;
37		this.grid.editStop=function(){};
38		
39		this.grid.editStop=a;
40	}
41	this.detach=function(){
42		this._sub.parentObject.style.display='none';
43		if (this.grid._sub_id != null) {
44			var old=this.cell._val;
45			this.setValue(this._sub.getSelectedItemId());
46			this.grid._sub_id = null;
47			return this.cell._val!=old;
48		}
49	}
50}
51eXcell_stree.prototype = new eXcell;
52
53
54dhtmlXGridObject.prototype.setSubTree=function(tree,s_index){
55		if (!this._sub_trees) 
56			this._sub_trees=[];
57		this._sub_trees[s_index]=[tree];
58		tree.parentObject.style.display="none";
59		var that=this;
60		tree.parentObject.onclick = function(event) {(event || window.event).cancelBubble = true;return false;}
61		tree.ev_onDblClick=null;
62		tree.attachEvent("onDblClick",function(id){
63			that._sub_id = id;
64			that.editStop();
65			return true;
66		});
67		tree._chRRS=true;
68};
69//(c)dhtmlx ltd. www.dhtmlx.com
70

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.