From f779454f4cd61ad90b788ce90fae0eb483801ba9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 15 Oct 2010 16:16:07 +0000 Subject: [PATCH] only provide old pathes for old functionality, new code can use new path dhtmlxTree/codebase --- .../js/dhtmlxtree/js/ext/dhtmlxtree_dragin.js | 18 ---------- .../js/dhtmlxtree/js/ext/dhtmlxtree_ed.js | 22 ------------- .../js/dhtmlxtree/js/ext/dhtmlxtree_er.js | 18 ---------- .../js/dhtmlxtree/js/ext/dhtmlxtree_json.js | 33 ------------------- .../js/dhtmlxtree/js/ext/dhtmlxtree_start.js | 23 ------------- phpgwapi/js/dhtmlxtree/readme.EGroupware.txt | 5 ++- 6 files changed, 2 insertions(+), 117 deletions(-) delete mode 100755 phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_dragin.js delete mode 100755 phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_ed.js delete mode 100755 phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_er.js delete mode 100755 phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_json.js delete mode 100755 phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_start.js diff --git a/phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_dragin.js b/phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_dragin.js deleted file mode 100755 index ec83464b12..0000000000 --- a/phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_dragin.js +++ /dev/null @@ -1,18 +0,0 @@ -//v.2.6 build 100722 - -/* -Copyright DHTMLX LTD. http://www.dhtmlx.com -You allowed to use this component or parts of it under GPL terms -To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com -*/ - -dhtmlXTreeObject.prototype.makeDraggable=function(obj,func){if (typeof(obj)!="object") - obj=document.getElementById(obj);dragger=new dhtmlDragAndDropObject();dropper=new dhx_dragSomethingInTree();dragger.addDraggableItem(obj,dropper);obj.dragLanding=null;obj.ondragstart=dropper._preventNsDrag;obj.onselectstart=new Function("return false;");obj.parentObject=new Object;obj.parentObject.img=obj;obj.parentObject.treeNod=dropper;dropper._customDrop=func;};dhtmlXTreeObject.prototype.makeDragable=dhtmlXTreeObject.prototype.makeDraggable;dhtmlXTreeObject.prototype.makeAllDraggable=function(func){var z=document.getElementsByTagName("div");for (var i=0;i";temp.span.style.paddingRight=temp.span.style.paddingLeft='0px';temp.span.onclick = temp.span.ondblclick= function(e){(e||event).cancelBubble = true;};temp.span.childNodes[0].value=editText;temp.span.childNodes[0].onselectstart=function(e){(e||event).cancelBubble=true;return true;};temp.span.childNodes[0].onmousedown=function(e){(e||event).cancelBubble=true;return true;};temp.span.childNodes[0].focus();temp.span.childNodes[0].focus();temp.span.onclick=function (e){(e||event).cancelBubble=true;return false;};temp.span.className="";temp.span.parentNode.className="";var self=this;temp.span.childNodes[0].onkeydown=function(e){if (!e)e=window.event;if (e.keyCode==13){e.cancelBubble=true;self._stopEdit(window.undefined);}else if (e.keyCode==27){self._editCell.span.childNodes[0].value=self._editCell._oldValue;self._stopEdit(window.undefined);};(e||event).cancelBubble=true;};this.callEvent("onEdit",[1,id,this]);}}; - - -//v.2.6 build 100722 - -/* -Copyright DHTMLX LTD. http://www.dhtmlx.com -You allowed to use this component or parts of it under GPL terms -To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com -*/ \ No newline at end of file diff --git a/phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_er.js b/phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_er.js deleted file mode 100755 index 2ee60c6745..0000000000 --- a/phpgwapi/js/dhtmlxtree/js/ext/dhtmlxtree_er.js +++ /dev/null @@ -1,18 +0,0 @@ -//v.2.6 build 100722 - -/* -Copyright DHTMLX LTD. http://www.dhtmlx.com -You allowed to use this component or parts of it under GPL terms -To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com -*/ -var _all_used_trees=new Array();dhtmlXTreeObject.prototype._createSelfA2=dhtmlXTreeObject.prototype._createSelf;dhtmlXTreeObject.prototype._createSelf=function(){_all_used_trees[_all_used_trees.length]=this;return this._createSelfA2();};window.onerror=function (a,b,c,d){var d=document.createElement("DIV");d.style.cssText="position:absolute;background-color:white;top:10px;left:10px;z-index:20;width:500px;border: 2px silver outset;";var dh="
Javascript Error
";dh+="
The next error ocured :
"+a+" in "+b+" at line "+c+"
";dh+="
If you think that error can be caused by dhtmlxtree press the 'Generate report' button and send generated report to support@dhtmlx.com
";dh+="";dh+="
";d.innerHTML=dh;document.body.appendChild(d);return true;};function dhtmlxtreeErrorReport(a,b,c){var str=a+" ["+b+"]";if (a=='LoadXML'){str+="
"+c[0].responseText+"
"+c[0].status;};window.onerror(str, "none", "none");};function dhtmlxtreeReport(node){var that=node.parentNode;that.lastChild.innerHTML="";var rep=that.childNodes[1].innerHTML;for (var a=0;a<_all_used_trees.length;a++){var atree=_all_used_trees[a];rep+="\n\n Tree "+a+"\n";for (b in atree){if (typeof(atree[b])=="function") continue;rep+=b+"="+atree[b]+"\n";};rep+="---------------------\n";if (atree.XMLLoader){try{var z=atree.XMLLoader.getXMLTopNode("tree") - if (document.all)rep+=z.xml+"\n";else{var xmlSerializer = new XMLSerializer();rep+=xmlSerializer.serializeToString(z)+"\n";}}catch(e){rep+="XML not recognised\n";}};rep+="---------------------\n";for (var i in atree._idpull){var n=atree._idpull[i];if (typeof(n)!='object') continue;rep+="Node: "+n.id;rep+=" Childs: "+n.childsCount;for (var j=0;j"+cont+"");window[id]=t;var oninit = obj.getAttribute("oninit");if (oninit)eval(oninit);return t;};function dhx_init_trees(){var z=document.getElementsByTagName("div");for (var i=0;i dhtmlxTree/codebase/dhtmlxtree.css +| +- js +- dhtmlxcommon.js --> dhtmlxTree/codebase/dhtmlcommon.js +- dhtmlxtree.js --> dhtmlxTree/codebase/dhtmlxtree.js - +- ext --> dhtmlxTree/codebase/ext - +- ... -These files/directories are copied from dhtmlxTree/codebase to not modify all code. +These files/directories are copied from dhtmlxTree/codebase to not modify old code. If dhtmlxtree get updated, these files have to be copied again, or code need to be changed.