add dhtmlxMenu as context menu for dhtmxTree

This commit is contained in:
Ralf Becker
2010-10-18 19:25:33 +00:00
parent e9e2312b06
commit 4429ffa4b9
331 changed files with 25872 additions and 3 deletions

View File

@ -127,7 +127,8 @@ function dhtmlXTreeObject(htmlObject, width, height, rootId){
var self=this;
this.allTree.onselectstart=new Function("return false;");
if (_isMacOS)
this.allTree.oncontextmenu = function(e){ return self._doContClick(e||window.event); };
this.allTree.oncontextmenu = function(e){ return self._doContClick(e||window.event); };
else // chrom on Mac does NOT work otherwise
this.allTree.onmousedown = function(e){ return self._doContClick(e||window.event); };
this.XMLLoader=new dtmlXMLLoaderObject(this._parseXMLTree,this,true,this.no_cashe);