Commit 75acb8a3 authored by Lingnan Wu's avatar Lingnan Wu Committed by Kazuhiko Shiozaki

cleanup javascript by jslint.

parent 2f683b4e
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts56806083.55</string> </value> <value> <string>ts68173694.23</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -28,363 +28,398 @@ ...@@ -28,363 +28,398 @@
\n \n
function dtmlXMLLoaderObject(funcObject,dhtmlObject,async){\n function dtmlXMLLoaderObject(funcObject,dhtmlObject,async){\n
this.xmlDoc="";\n this.xmlDoc="";\n
if(arguments.length==2){\n if(arguments.length==2){\n
this.async=true;\n this.async=true;\n
}else{\n }\n
this.async=async;\n else{\n
}\n this.async=async;\n
this.onloadAction=funcObject||null;\n }\n
this.mainObject=dhtmlObject||null;\n this.onloadAction=funcObject||null;\n
return this;\n this.mainObject=dhtmlObject||null;\n
};\n return this;\n
\n
dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){\n
this.check=function(){\n
if(dhtmlObject.onloadAction!=null){\n
if(!dhtmlObject.xmlDoc.readyState)dhtmlObject.onloadAction(dhtmlObject.mainObject);\n
else{\n
if(dhtmlObject.xmlDoc.readyState != 4)return false;\n
else dhtmlObject.onloadAction(dhtmlObject.mainObject);}\n
}\n }\n
};\n \n
return this.check;\n dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){\n
this.check=function(){\n
if(dhtmlObject.onloadAction!==null){\n
if(!dhtmlObject.xmlDoc.readyState)\n
dhtmlObject.onloadAction(dhtmlObject.mainObject);\n
else{\n
if(dhtmlObject.xmlDoc.readyState != 4)\n
return false;\n
else\n
dhtmlObject.onloadAction(dhtmlObject.mainObject);\n
}\n
}\n
return true;\n
};\n
return this.check;\n
};\n };\n
\n \n
\n \n
dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName){\n dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName){\n
if(this.xmlDoc.responseXML){\n var z;\n
var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName);var z=temp[0];\n if(this.xmlDoc.responseXML){\n
}else{\n var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName);\n
var z=this.xmlDoc.documentElement;\n z=temp[0];\n
}\n }\n
if(z){\n else{\n
return z;\n z=this.xmlDoc.documentElement;\n
}\n }\n
if(z){\n
return z;\n
}\n
//alert("Error: execute tree.xml to see debug !");\n //alert("Error: execute tree.xml to see debug !");\n
open(\'tree.xml\', \'_self\');\n open(\'tree.xml\', \'_self\');\n
return document.createElement("DIV");\n return document.createElement("DIV");\n
}; \n };\n
\n \n
dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){\n dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){\n
try \n try \n
{\n {\n
var parser = new DOMParser();\n var parser = new DOMParser();\n
this.xmlDoc = parser.parseFromString(xmlString,"text/xml");\n this.xmlDoc = parser.parseFromString(xmlString,"text/xml");\n
}\n }\n
catch(e){\n catch(e){\n
this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");\n this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");\n
this.xmlDoc.async=this.async\n this.xmlDoc.async=this.async;\n
this.xmlDoc.loadXML(xmlString);\n this.xmlDoc.loadXML(xmlString);\n
}\n }\n
this.onloadAction(this.mainObject);\n this.onloadAction(this.mainObject);\n
}\n };\n
dtmlXMLLoaderObject.prototype.loadXML=function(filePath){\n
try \n
{\n
this.xmlDoc = new XMLHttpRequest();\n
this.xmlDoc.open("GET",filePath,this.async);\n
this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);\n
this.xmlDoc.send(null);\n
}\n
catch(e){\n
\n \n
if(document.implementation && document.implementation.createDocument)\n dtmlXMLLoaderObject.prototype.loadXML=function(filePath){\n
{\n try \n
this.xmlDoc = document.implementation.createDocument("","",null);\n {\n
this.xmlDoc.onload = new this.waitLoadFunction(this);\n this.xmlDoc = new XMLHttpRequest();\n
}\n this.xmlDoc.open("GET",filePath,this.async);\n
else\n this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);\n
{\n this.xmlDoc.send(null);\n
this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");\n }\n
this.xmlDoc.async=this.async\n catch(e){\n
this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);\n if(document.implementation && document.implementation.createDocument){\n
}\n this.xmlDoc = document.implementation.createDocument("","",null);\n
this.xmlDoc.load(filePath);\n this.xmlDoc.onload = new this.waitLoadFunction(this);\n
}\n }\n
else\n
{\n
this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");\n
this.xmlDoc.async=this.async;\n
this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);\n
}\n
this.xmlDoc.load(filePath);\n
}\n
};\n };\n
\n \n
\n \n
function callerFunction(funcObject,dhtmlObject){\n function callerFunction(funcObject,dhtmlObject){\n
this.handler=function(e){\n this.handler=function(e){\n
if(!e)e=event;\n if(!e)e=event;\n
funcObject(e,dhtmlObject);\n funcObject(e,dhtmlObject);\n
return true;\n return true;\n
};\n };\n
return this.handler;\n return this.handler;\n
};\n }\n
\n \n
\n \n
function getAbsoluteLeft(htmlObject){\n function getAbsoluteLeft(htmlObject){\n
var xPos = htmlObject.offsetLeft;\n var xPos = htmlObject.offsetLeft;\n
var temp = htmlObject.offsetParent;\n var temp = htmlObject.offsetParent;\n
while(temp != null){\n while(temp !== null){\n
xPos+= temp.offsetLeft;\n xPos+= temp.offsetLeft;\n
temp = temp.offsetParent;\n temp = temp.offsetParent;\n
}\n }\n
return xPos;\n return xPos;\n
}\n }\n
\n \n
function getAbsoluteTop(htmlObject){\n function getAbsoluteTop(htmlObject){\n
var yPos = htmlObject.offsetTop;\n var yPos = htmlObject.offsetTop;\n
var temp = htmlObject.offsetParent;\n var temp = htmlObject.offsetParent;\n
while(temp != null){\n while(temp !== null){\n
yPos+= temp.offsetTop;\n yPos+= temp.offsetTop;\n
temp = temp.offsetParent;\n temp = temp.offsetParent;\n
}\n
return yPos;\n
}\n }\n
return yPos;\n
}\n
\n
\n \n
\n function convertStringToBoolean(inputString){\n
function convertStringToBoolean(inputString){if(typeof(inputString)=="string")inputString=inputString.toLowerCase();\n if(typeof(inputString)=="string")\n
switch(inputString){\n inputString=inputString.toLowerCase();\n
case "1":\n switch(inputString){\n
case "true":\n case "1":\n
case "yes":\n case "true":\n
case "y":\n case "yes":\n
case 1: \n case "y":\n
case true: \n case 1: \n
return true;\n case true: \n
break;\n return true;\n
default: return false;\n break;\n
}\n default: return false;\n
}\n
return false;\n
}\n }\n
\n \n
\n
function getUrlSymbol(str){\n function getUrlSymbol(str){\n
if(str.indexOf("?")!=-1)\n if(str.indexOf("?")!=-1)\n
return "&"\n return "&";\n
else\n else\n
return "?"\n return "?";\n
}\n }\n
\n \n
\n
function dhtmlDragAndDropObject(){\n function dhtmlDragAndDropObject(){\n
this.lastLanding=0;\n this.lastLanding=0;\n
this.dragNode=0;\n this.dragNode=0;\n
this.dragStartNode=0;\n this.dragStartNode=0;\n
this.dragStartObject=0;\n this.dragStartObject=0;\n
this.tempDOMU=null;\n this.tempDOMU=null;\n
this.tempDOMM=null;\n this.tempDOMM=null;\n
this.waitDrag=0;\n this.waitDrag=0;\n
if(window.dhtmlDragAndDrop)return window.dhtmlDragAndDrop;\n if(window.dhtmlDragAndDrop)\n
window.dhtmlDragAndDrop=this;\n return window.dhtmlDragAndDrop;\n
\n window.dhtmlDragAndDrop=this;\n
return this;\n return this;\n
};\n
\n
dhtmlDragAndDropObject.prototype.removeDraggableItem=function(htmlNode){\n
htmlNode.onmousedown=null;\n
htmlNode.dragStarter=null;\n
htmlNode.dragLanding=null;\n
}\n
dhtmlDragAndDropObject.prototype.addDraggableItem=function(htmlNode,dhtmlObject){\n
htmlNode.onmousedown=this.preCreateDragCopy;\n
htmlNode.dragStarter=dhtmlObject;\n
this.addDragLanding(htmlNode,dhtmlObject);\n
}\n }\n
dhtmlDragAndDropObject.prototype.addDragLanding=function(htmlNode,dhtmlObject){\n \n
htmlNode.dragLanding=dhtmlObject;\n dhtmlDragAndDropObject.prototype.removeDraggableItem=function(htmlNode){\n
}\n htmlNode.onmousedown=null;\n
dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(e)\n htmlNode.dragStarter=null;\n
{\n htmlNode.dragLanding=null;\n
if(window.dhtmlDragAndDrop.waitDrag){\n
window.dhtmlDragAndDrop.waitDrag=0;\n
document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;\n
document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;\n
return false;\n
}\n
\n
window.dhtmlDragAndDrop.waitDrag=1;\n
window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;\n
window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;\n
window.dhtmlDragAndDrop.dragStartNode=this;\n
window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;\n
document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;\n
document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;\n
\n
if((e)&&(e.preventDefault)){e.preventDefault();return false;}\n
return false;\n
};\n };\n
dhtmlDragAndDropObject.prototype.callDrag=function(e){\n
if(!e)e=window.event;\n
dragger=window.dhtmlDragAndDrop;\n
\n
if((e.button==0)&&(isIE()))return dragger.stopDrag();\n
if(!dragger.dragNode){\n
dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode);\n
if(!dragger.dragNode)return dragger.stopDrag();\n
dragger.gldragNode=dragger.dragNode;\n
document.body.appendChild(dragger.dragNode);\n
document.body.onmouseup=dragger.stopDrag;\n
dragger.waitDrag=0;\n
dragger.dragNode.pWindow=window;\n
dragger.initFrameRoute();\n
}\n
\n \n
dhtmlDragAndDropObject.prototype.addDraggableItem=function(htmlNode,dhtmlObject){\n
htmlNode.onmousedown=this.preCreateDragCopy;\n
htmlNode.dragStarter=dhtmlObject;\n
this.addDragLanding(htmlNode,dhtmlObject);\n
};\n
\n \n
if(dragger.dragNode.parentNode!=window.document.body){\n dhtmlDragAndDropObject.prototype.addDragLanding=function(htmlNode,dhtmlObject){\n
var grd=dragger.gldragNode;\n htmlNode.dragLanding=dhtmlObject;\n
if(dragger.gldragNode.old)grd=dragger.gldragNode.old;\n };\n
\n \n
\n dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(e){\n
grd.parentNode.removeChild(grd);\n if(window.dhtmlDragAndDrop.waitDrag){\n
var oldBody=dragger.dragNode.pWindow;\n window.dhtmlDragAndDrop.waitDrag=0;\n
if(isIE()){\n document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;\n
var div=document.createElement("Div");\n document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;\n
div.innerHTML=dragger.dragNode.outerHTML;\n return false;\n
dragger.dragNode=div.childNodes[0];}\n }\n
else dragger.dragNode=dragger.dragNode.cloneNode(true);\n window.dhtmlDragAndDrop.waitDrag=1;\n
dragger.dragNode.pWindow=window;\n window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;\n
dragger.gldragNode.old=dragger.dragNode;\n window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;\n
document.body.appendChild(dragger.dragNode);\n window.dhtmlDragAndDrop.dragStartNode=this;\n
oldBody.dhtmlDragAndDrop.dragNode=dragger.dragNode;\n window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;\n
}\n document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;\n
dragger.dragNode.style.left=e.clientX+15+(dragger.fx?dragger.fx*(-1):0)+document.body.scrollLeft+"px";\n document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;\n
dragger.dragNode.style.top=e.clientY+3+(dragger.fy?(-1)*dragger.fy:0)+document.body.scrollTop+"px";\n if((e)&&(e.preventDefault)){\n
if(!e.srcElement)var z=e.target;else z=e.srcElement;\n e.preventDefault();\n
dragger.checkLanding(z,e.clientX,e.clientY);\n return false;\n
}\n }\n
\n return false;\n
dhtmlDragAndDropObject.prototype.calculateFramePosition=function(n){\n };\n
\n
if(window.name){\n
var el =parent.frames[window.name].frameElement.offsetParent;\n
var fx=0;\n
var fy=0;\n
while(el){fx+= el.offsetLeft;fy+= el.offsetTop;el = el.offsetParent;}\n
if((parent.dhtmlDragAndDrop)){var ls=parent.dhtmlDragAndDrop.calculateFramePosition(1);fx+=ls.split(\'_\')[0]*1;fy+=ls.split(\'_\')[1]*1;}\n
if(n)return fx+"_"+fy;\n
else this.fx=fx;this.fy=fy;\n
}\n
return "0_0";\n
}\n
dhtmlDragAndDropObject.prototype.checkLanding=function(htmlObject,x,y){\n
\n \n
if((htmlObject)&&(htmlObject.dragLanding)){if(this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding);\n dhtmlDragAndDropObject.prototype.callDrag=function(e){\n
this.lastLanding=htmlObject;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,x,y);}\n if(!e)e=window.event;\n
else{\n dragger=window.dhtmlDragAndDrop;\n
if((htmlObject)&&(htmlObject.tagName!="BODY"))this.checkLanding(htmlObject.parentNode,x,y);\n if((e.button===0)&&(isIE()))\n
else{if(this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding,x,y);this.lastLanding=0;}\n return dragger.stopDrag();\n
}\n if(!dragger.dragNode){\n
}\n dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode);\n
dhtmlDragAndDropObject.prototype.stopDrag=function(e,mode){\n if(!dragger.dragNode)\n
dragger=window.dhtmlDragAndDrop;\n return dragger.stopDrag();\n
if(!mode)\n dragger.gldragNode=dragger.dragNode;\n
{\n document.body.appendChild(dragger.dragNode);\n
dragger.stopFrameRoute();\n document.body.onmouseup=dragger.stopDrag;\n
var temp=dragger.lastLanding;\n dragger.waitDrag=0;\n
dragger.lastLanding=null;\n dragger.dragNode.pWindow=window;\n
if(temp)temp.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,temp);\n dragger.initFrameRoute();\n
}\n }\n
dragger.lastLanding=null;\n if(dragger.dragNode.parentNode!=window.document.body){\n
if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body))dragger.dragNode.parentNode.removeChild(dragger.dragNode);\n var grd=dragger.gldragNode;\n
dragger.dragNode=0;\n if(dragger.gldragNode.old)grd=dragger.gldragNode.old;\n
dragger.gldragNode=0;\n grd.parentNode.removeChild(grd);\n
dragger.fx=0;\n var oldBody=dragger.dragNode.pWindow;\n
dragger.fy=0;\n if(isIE()){\n
dragger.dragStartNode=0;\n var div=document.createElement("Div");\n
dragger.dragStartObject=0;\n div.innerHTML=dragger.dragNode.outerHTML;\n
document.body.onmouseup=dragger.tempDOMU;\n dragger.dragNode=div.childNodes[0];\n
document.body.onmousemove=dragger.tempDOMM;\n }\n
dragger.tempDOMU=null;\n else\n
dragger.tempDOMM=null;\n dragger.dragNode=dragger.dragNode.cloneNode(true);\n
dragger.waitDrag=0;\n dragger.dragNode.pWindow=window;\n
}\n dragger.gldragNode.old=dragger.dragNode;\n
\n document.body.appendChild(dragger.dragNode);\n
dhtmlDragAndDropObject.prototype.stopFrameRoute=function(win){\n oldBody.dhtmlDragAndDrop.dragNode=dragger.dragNode;\n
if(win)\n }\n
window.dhtmlDragAndDrop.stopDrag(1,1);\n dragger.dragNode.style.left=e.clientX+15+(dragger.fx?dragger.fx*(-1):0)+document.body.scrollLeft+"px";\n
dragger.dragNode.style.top=e.clientY+3+(dragger.fy?(-1)*dragger.fy:0)+document.body.scrollTop+"px";\n
if(!e.srcElement)\n
var z=e.target;\n
else \n
z=e.srcElement;\n
dragger.checkLanding(z,e.clientX,e.clientY);\n
return "0_0";\n
};\n
\n \n
for(var i=0;i<window.frames.length;i++)\n dhtmlDragAndDropObject.prototype.calculateFramePosition=function(n){\n
if((window.frames[i]!=win)&&(window.frames[i].dhtmlDragAndDrop))\n if(window.name){\n
window.frames[i].dhtmlDragAndDrop.stopFrameRoute(window);\n var el =parent.frames[window.name].frameElement.offsetParent;\n
if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=win))\n var fx=0;\n
parent.dhtmlDragAndDrop.stopFrameRoute(window);\n var fy=0;\n
}\n while(el){\n
dhtmlDragAndDropObject.prototype.initFrameRoute=function(win,mode){\n fx+= el.offsetLeft;\n
if(win){\n fy+= el.offsetTop;\n
\n el = el.offsetParent;\n
}\n
if((parent.dhtmlDragAndDrop)){\n
var ls=parent.dhtmlDragAndDrop.calculateFramePosition(1);\n
fx+=ls.split(\'_\')[0]*1;\n
fy+=ls.split(\'_\')[1]*1;\n
}\n
if(n)\n
return fx+"_"+fy;\n
else\n
this.fx=fx;\n
this.fy=fy;\n
}\n
return "0_0";\n
};\n
\n \n
window.dhtmlDragAndDrop.preCreateDragCopy();\n dhtmlDragAndDropObject.prototype.checkLanding=function(htmlObject,x,y){\n
window.dhtmlDragAndDrop.dragStartNode=win.dhtmlDragAndDrop.dragStartNode;\n if((htmlObject)&&(htmlObject.dragLanding)){\n
window.dhtmlDragAndDrop.dragStartObject=win.dhtmlDragAndDrop.dragStartObject;\n if(this.lastLanding)\n
window.dhtmlDragAndDrop.dragNode=win.dhtmlDragAndDrop.dragNode;\n this.lastLanding.dragLanding._dragOut(this.lastLanding);\n
window.dhtmlDragAndDrop.gldragNode=win.dhtmlDragAndDrop.dragNode;\n this.lastLanding=htmlObject;\n
window.document.body.onmouseup=window.dhtmlDragAndDrop.stopDrag;\n this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,x,y);\n
window.waitDrag=0;\n }\n
if((!isIE())&&(mode))window.dhtmlDragAndDrop.calculateFramePosition();\n else{\n
}\n if((htmlObject)&&(htmlObject.tagName!="BODY"))\n
if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=win))\n this.checkLanding(htmlObject.parentNode,x,y);\n
parent.dhtmlDragAndDrop.initFrameRoute(window);\n else{\n
for(var i=0;i<window.frames.length;i++)\n if(this.lastLanding)\n
if((window.frames[i]!=win)&&(window.frames[i].dhtmlDragAndDrop))\n this.lastLanding.dragLanding._dragOut(this.lastLanding,x,y);\n
window.frames[i].dhtmlDragAndDrop.initFrameRoute(window,((!win||mode)?1:0));\n this.lastLanding=0;\n
}\n
}\n
};\n
\n \n
}\n dhtmlDragAndDropObject.prototype.stopDrag=function(e,mode){\n
dragger=window.dhtmlDragAndDrop;\n
if(!mode){\n
dragger.stopFrameRoute();\n
var temp=dragger.lastLanding;\n
dragger.lastLanding=null;\n
if(temp)temp.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,temp);\n
}\n
dragger.lastLanding=null;\n
if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body))\n
dragger.dragNode.parentNode.removeChild(dragger.dragNode);\n
dragger.dragNode=0;\n
dragger.gldragNode=0;\n
dragger.fx=0;\n
dragger.fy=0;\n
dragger.dragStartNode=0;\n
dragger.dragStartObject=0;\n
document.body.onmouseup=dragger.tempDOMU;\n
document.body.onmousemove=dragger.tempDOMM;\n
dragger.tempDOMU=null;\n
dragger.tempDOMM=null;\n
dragger.waitDrag=0;\n
};\n
\n \n
dhtmlDragAndDropObject.prototype.stopFrameRoute=function(win){\n
if(win){\n
window.dhtmlDragAndDrop.stopDrag(1,1);\n
}\n
for(var i=0;i<window.frames.length;i++){\n
if((window.frames[i]!=win)&&(window.frames[i].dhtmlDragAndDrop)){\n
window.frames[i].dhtmlDragAndDrop.stopFrameRoute(window);\n
}\n
}\n
if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=win))\n
parent.dhtmlDragAndDrop.stopFrameRoute(window);\n
};\n
\n \n
\n dhtmlDragAndDropObject.prototype.initFrameRoute=function(win,mode){\n
if(win){\n
window.dhtmlDragAndDrop.preCreateDragCopy();\n
window.dhtmlDragAndDrop.dragStartNode=win.dhtmlDragAndDrop.dragStartNode;\n
window.dhtmlDragAndDrop.dragStartObject=win.dhtmlDragAndDrop.dragStartObject;\n
window.dhtmlDragAndDrop.dragNode=win.dhtmlDragAndDrop.dragNode;\n
window.dhtmlDragAndDrop.gldragNode=win.dhtmlDragAndDrop.dragNode;\n
window.document.body.onmouseup=window.dhtmlDragAndDrop.stopDrag;\n
window.waitDrag=0;\n
if((!isIE())&&(mode))\n
window.dhtmlDragAndDrop.calculateFramePosition();\n
}\n
if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=win)){\n
parent.dhtmlDragAndDrop.initFrameRoute(window);\n
}\n
for(var i=0;i<window.frames.length;i++){\n
if((window.frames[i]!=win)&&(window.frames[i].dhtmlDragAndDrop)){\n
window.frames[i].dhtmlDragAndDrop.initFrameRoute(window,((!win||mode)?1:0));\n
}\n
}\n
};\n
\n \n
function isIE(){\n function isIE(){\n
if(navigator.appName.indexOf("Microsoft")!=-1)\n if(navigator.appName.indexOf("Microsoft")!=-1){\n
if(navigator.userAgent.indexOf(\'Opera\')== -1)\n if(navigator.userAgent.indexOf(\'Opera\')== -1){\n
return true;\n return true;\n
return false;\n }\n
return false;\n
}\n
}\n }\n
\n \n
\n \n
dtmlXMLLoaderObject.prototype.doXPath = function(xpathExp,docObj){\n dtmlXMLLoaderObject.prototype.doXPath = function(xpathExp,docObj){\n
if(isIE()){\n if(isIE()){\n
if(arguments.length==1){\n if(arguments.length==1){\n
docObj = this.xmlDoc\n docObj = this.xmlDoc;\n
}\n }\n
return docObj.selectNodes(xpathExp);\n return docObj.selectNodes(xpathExp);\n
}else{\n }\n
var nodeObj = docObj;\n else{\n
if(!docObj){\n var nodeObj = docObj;\n
if(!this.xmlDoc.nodeName){\n if(!docObj){\n
docObj = this.xmlDoc.responseXML\n if(!this.xmlDoc.nodeName){\n
}else{\n docObj = this.xmlDoc.responseXML;\n
docObj = this.xmlDoc;\n }\n
}\n else{\n
}\n docObj = this.xmlDoc;\n
if(docObj.nodeName.indexOf("document")!=-1){\n }\n
nodeObj = docObj;\n }\n
}else{\n if(docObj.nodeName.indexOf("document")!=-1){\n
nodeObj = docObj;\n nodeObj = docObj;\n
docObj = docObj.ownerDocument;\n }\n
\n else{\n
}\n nodeObj = docObj;\n
var rowsCol = new Array();\n docObj = docObj.ownerDocument;\n
var col = docObj.evaluate(xpathExp,nodeObj,null,XPathResult.ANY_TYPE,null);\n }\n
var thisColMemb = col.iterateNext();\n var rowsCol = new Array();\n
while(thisColMemb){\n var col = docObj.evaluate(xpathExp,nodeObj,null,XPathResult.ANY_TYPE,null);\n
rowsCol[rowsCol.length] = thisColMemb;\n var thisColMemb = col.iterateNext();\n
thisColMemb = col.iterateNext();\n while(thisColMemb){\n
}\n rowsCol[rowsCol.length] = thisColMemb;\n
return rowsCol;\n thisColMemb = col.iterateNext();\n
}\n }\n
}\n return rowsCol;\n
}\n
};\n
\n \n
if(window.Node)\n if(window.Node){\n
Node.prototype.removeNode = function(removeChildren)\n Node.prototype.removeNode = function(removeChildren){\n
{\n var self = this;\n
var self = this;\n if(Boolean(removeChildren)){\n
if(Boolean(removeChildren))\n return this.parentNode.removeChild(self);\n
{\n }\n
return this.parentNode.removeChild(self);\n else{\n
var range = document.createRange();\n
range.selectNodeContents(self);\n
return this.parentNode.replaceChild(range.extractContents(),self);\n
}\n
};\n
}\n }\n
else\n
{\n
var range = document.createRange();\n
range.selectNodeContents(self);\n
return this.parentNode.replaceChild(range.extractContents(),self);\n
}\n
}\n
\n
\n
]]></string> </value> ]]></string> </value>
...@@ -395,7 +430,7 @@ Node.prototype.removeNode = function(removeChildren)\n ...@@ -395,7 +430,7 @@ Node.prototype.removeNode = function(removeChildren)\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>10010</int> </value> <value> <int>10983</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts45870562.28</string> </value> <value> <string>ts68190334.01</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -103,7 +103,7 @@ function dhtmlXTreeObject(htmlObject,width,height,rootId){\n ...@@ -103,7 +103,7 @@ function dhtmlXTreeObject(htmlObject,width,height,rootId){\n
\n \n
\n \n
return this;\n return this;\n
};\n }\n
\n \n
\n \n
function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHandler,mode){\n function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHandler,mode){\n
...@@ -135,21 +135,21 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -135,21 +135,21 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
this.htmlNode.objBelong=this;\n this.htmlNode.objBelong=this;\n
return this;\n return this;\n
};\n }\n
\n \n
dhtmlXTreeObject.prototype._getAllParentId=function(temp, list_id)\n dhtmlXTreeObject.prototype._getAllParentId=function(temp, list_id)\n
{\n {\n
if(!temp || !temp.parentObject || temp.parentObject.id==0) return list_id;\n if(!temp || !temp.parentObject || temp.parentObject.id===0) return list_id;\n
return this._getAllParentId(temp.parentObject, list_id+\',\'+temp.parentObject.id);\n return this._getAllParentId(temp.parentObject, list_id+\',\'+temp.parentObject.id);\n
}; \n }; \n
\n \n
dhtmlXTreeObject.prototype.getAllParentId=function(itemId)\n dhtmlXTreeObject.prototype.getAllParentId=function(itemId)\n
{\n {\n
var temp=this._globalIdStorageFind(itemId);\n var temp=this._globalIdStorageFind(itemId);\n
if((!temp)||(!temp.parentObject)||temp.parentObject.id==0){\n if((!temp)||(!temp.parentObject)||temp.parentObject.id===0){\n
return "";\n return "";\n
}else{\n }else{\n
list_id = this._getAllParentId(temp.parentObject, temp.parentObject.id)\n list_id = this._getAllParentId(temp.parentObject, temp.parentObject.id);\n
return list_id.substring(0, list_id.length);\n return list_id.substring(0, list_id.length);\n
}\n }\n
};\n };\n
...@@ -163,7 +163,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -163,7 +163,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
};\n };\n
\n \n
dhtmlXTreeObject.prototype._globalIdStorageSub=function(itemId){\n dhtmlXTreeObject.prototype._globalIdStorageSub=function(itemId){\n
for(var i=0;i<this._globalIdStorageSize;i++)\n for(var i=0;i<this._globalIdStorageSize;i++){\n
if(this._globalIdStorage[i]==itemId)\n if(this._globalIdStorage[i]==itemId)\n
{\n {\n
this._globalIdStorage[i]=this._globalIdStorage[this._globalIdStorageSize-1];\n this._globalIdStorage[i]=this._globalIdStorage[this._globalIdStorageSize-1];\n
...@@ -172,17 +172,18 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -172,17 +172,18 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
this._globalIdStorage[this._globalIdStorageSize]=0;\n this._globalIdStorage[this._globalIdStorageSize]=0;\n
this.globalNodeStorage[this._globalIdStorageSize]=0;\n this.globalNodeStorage[this._globalIdStorageSize]=0;\n
}\n }\n
}\n
};\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype._globalIdStorageFind=function(itemId,skipXMLSearch,skipParsing){\n dhtmlXTreeObject.prototype._globalIdStorageFind=function(itemId,skipXMLSearch,skipParsing){\n
\n \n
for(var i=0;i<this._globalIdStorageSize;i++)\n for(var i=0;i<this._globalIdStorageSize;i++){\n
if(this._globalIdStorage[i]==itemId)\n if(this._globalIdStorage[i]==itemId)\n
{\n {\n
return this.globalNodeStorage[i];\n return this.globalNodeStorage[i];\n
}\n }\n
\n }\n
\n \n
return null;\n return null;\n
};\n };\n
...@@ -217,7 +218,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -217,7 +218,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
dhtmlXTreeObject.prototype._attachChildNode=function(parentObject,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs,beforeNode){\n dhtmlXTreeObject.prototype._attachChildNode=function(parentObject,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs,beforeNode){\n
if(beforeNode)parentObject=beforeNode.parentObject;\n if(beforeNode)parentObject=beforeNode.parentObject;\n
if(((parentObject.XMLload==0)&&(this.XMLsource))&&(!this.XMLloadingWarning))\n if(((parentObject.XMLload===0)&&(this.XMLsource))&&(!this.XMLloadingWarning))\n
{\n {\n
parentObject.XMLload=1;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"itemId="+escape(parentObject.id));\n parentObject.XMLload=1;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"itemId="+escape(parentObject.id));\n
}\n }\n
...@@ -228,12 +229,13 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -228,12 +229,13 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
if(beforeNode)\n if(beforeNode)\n
{\n {\n
var ik,jk;\n var ik,jk;\n
for(ik=0;ik<Count;ik++)\n for(ik=0;ik<Count;ik++){\n
if(Nodes[ik]==beforeNode)\n if(Nodes[ik]==beforeNode)\n
{\n {\n
for(jk=Count;jk!=ik;jk--)\n for(jk=Count;jk!=ik;jk--)\n
Nodes[1+jk]=Nodes[jk];\n Nodes[1+jk]=Nodes[jk];\n
break;\n break;\n
}\n
}\n }\n
ik++;\n ik++;\n
Count=ik;\n Count=ik;\n
...@@ -252,9 +254,10 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -252,9 +254,10 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
Nodes[ik+Count]=Nodes[ik+Count-1];\n Nodes[ik+Count]=Nodes[ik+Count-1];\n
Count=0;\n Count=0;\n
break;\n break;\n
default: break;\n
}\n
}\n
}\n }\n
};\n
};\n
\n \n
Nodes[Count]=new dhtmlXTreeItemObject(itemId,itemText,parentObject,this,itemActionHandler,1);\n Nodes[Count]=new dhtmlXTreeItemObject(itemId,itemText,parentObject,this,itemActionHandler,1);\n
\n \n
...@@ -281,18 +284,18 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -281,18 +284,18 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
if((beforeNode)&&(!beforeNode.span))beforeNode=null;\n if((beforeNode)&&(!beforeNode.span))beforeNode=null;\n
\n \n
if(this.XMLsource)if((childs)&&(childs!=0))Nodes[Count].XMLload=0;else Nodes[Count].XMLload=1;\n if(this.XMLsource){if((childs)&&(childs!==0))Nodes[Count].XMLload=0;else Nodes[Count].XMLload=1;}\n
\n \n
Nodes[Count].tr=tr;\n Nodes[Count].tr=tr;\n
tr.nodem=Nodes[Count];\n tr.nodem=Nodes[Count];\n
\n \n
if(parentObject.itemId==0)\n if(parentObject.itemId===0)\n
tr.childNodes[0].className="hitemIddenRow";\n tr.childNodes[0].className="hitemIddenRow";\n
\n \n
if(optionStr){\n if(optionStr){\n
var tempStr=optionStr.split(",");\n tempStr=optionStr.split(",");\n
\n \n
for(var i=0;i<tempStr.length;i++)\n for(i=0;i<tempStr.length;i++)\n
{\n {\n
switch(tempStr[i])\n switch(tempStr[i])\n
{\n {\n
...@@ -309,9 +312,10 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -309,9 +312,10 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
this._setCheck(Nodes[Count],"notsure");\n this._setCheck(Nodes[Count],"notsure");\n
break;\n break;\n
case "OPEN": Nodes[Count].openMe=1;break;\n case "OPEN": Nodes[Count].openMe=1;break;\n
default: break;\n
}\n
}\n
}\n }\n
};\n
};\n
\n \n
if(!this.XMLloadingWarning)\n if(!this.XMLloadingWarning)\n
{\n {\n
...@@ -382,7 +386,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -382,7 +386,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
var aColor=nodx.getAttribute("aCol");\n var aColor=nodx.getAttribute("aCol");\n
//var sColor=nodx.getAttribute("sCol");\n //var sColor=nodx.getAttribute("sCol");\n
var sColor=aColor\n var sColor=aColor;\n
\n \n
var chd=nodx.getAttribute("child");\n var chd=nodx.getAttribute("child");\n
\n \n
...@@ -432,15 +436,16 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -432,15 +436,16 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
}\n }\n
else{\n else{\n
if(node.childNodes[i].childNodes.length>0){\n if(node.childNodes[i].childNodes.length>0){\n
for(var a=0;a<node.childNodes[i].childNodes.length;a++)\n for(var a=0;a<node.childNodes[i].childNodes.length;a++){\n
if(node.childNodes[i].childNodes[a].tagName=="item"){\n if(node.childNodes[i].childNodes[a].tagName=="item"){\n
newNode.unParsed=node.childNodes[i];\n newNode.unParsed=node.childNodes[i];\n
break;\n break;\n
}\n }\n
}\n }\n
}\n
}\n }\n
\n \n
if(zcall!="")nodeAskingCall=zcall;\n if(zcall!=="")nodeAskingCall=zcall;\n
\n \n
}\n }\n
else dhtmlObject._parseXMLTree(dhtmlObject,node.childNodes[i],cId,1);\n else dhtmlObject._parseXMLTree(dhtmlObject,node.childNodes[i],cId,1);\n
...@@ -448,13 +453,13 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -448,13 +453,13 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
else\n else\n
if((node.childNodes[i].nodeType==1)&&(node.childNodes[i].tagName == "userdata"))\n if((node.childNodes[i].nodeType==1)&&(node.childNodes[i].tagName == "userdata"))\n
{\n {\n
var name=node.childNodes[i].getAttribute("name");\n name=node.childNodes[i].getAttribute("name");\n
if((name)&&(node.childNodes[i].childNodes[0])){\n if((name)&&(node.childNodes[i].childNodes[0])){\n
if((!dhtmlObject.waitUpdateXML)||(dhtmlObject.waitUpdateXML.toString().search(","+parentId+",")!=-1))\n if((!dhtmlObject.waitUpdateXML)||(dhtmlObject.waitUpdateXML.toString().search(","+parentId+",")!=-1))\n
dhtmlObject.setUserData(parentId,name,node.childNodes[i].childNodes[0].data);\n dhtmlObject.setUserData(parentId,name,node.childNodes[i].childNodes[0].data);\n
};\n }\n
};\n }\n
};\n }\n
\n \n
if(!level){\n if(!level){\n
if(dhtmlObject.waitUpdateXML)\n if(dhtmlObject.waitUpdateXML)\n
...@@ -462,7 +467,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -462,7 +467,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
else{\n else{\n
\n \n
var parsedNodeTop=dhtmlObject._globalIdStorageFind(dhtmlObject.parsingOn);\n var parsedNodeTop=dhtmlObject._globalIdStorageFind(dhtmlObject.parsingOn);\n
for(var i=0;i<dhtmlObject.parsedArray.length;i++)\n for(i=0;i<dhtmlObject.parsedArray.length;i++)\n
parsedNodeTop.htmlNode.childNodes[0].appendChild(dhtmlObject.parsedArray[i]);\n parsedNodeTop.htmlNode.childNodes[0].appendChild(dhtmlObject.parsedArray[i]);\n
dhtmlObject.parsingOn=0;\n dhtmlObject.parsingOn=0;\n
\n \n
...@@ -470,11 +475,12 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -470,11 +475,12 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
dhtmlObject.XMLloadingWarning=0;\n dhtmlObject.XMLloadingWarning=0;\n
var chArr=dhtmlObject.setCheckList.split(",");\n var chArr=dhtmlObject.setCheckList.split(",");\n
for(var n=0;n<chArr.length;n++)\n for(var n=0;n<chArr.length;n++){\n
if(chArr[n])dhtmlObject.setCheck(chArr[n],1);\n if(chArr[n])dhtmlObject.setCheck(chArr[n],1);\n
}\n
dhtmlObject._redrawFrom(dhtmlObject);\n dhtmlObject._redrawFrom(dhtmlObject);\n
\n \n
if(nodeAskingCall!="")dhtmlObject.selectItem(nodeAskingCall,true);\n if(nodeAskingCall!=="")dhtmlObject.selectItem(nodeAskingCall,true);\n
if(dhtmlObject.waitCall)dhtmlObject.waitCall();\n if(dhtmlObject.waitCall)dhtmlObject.waitCall();\n
}\n }\n
}\n }\n
...@@ -513,7 +519,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -513,7 +519,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
dhtmlObject._redrawFrom(dhtmlObject,tempx.childNodes[i]);\n dhtmlObject._redrawFrom(dhtmlObject,tempx.childNodes[i]);\n
\n \n
if(this.childCalc!=null){\n if(this.childCalc!==null){\n
\n \n
if((tempx.childNodes[i].unParsed)||((!tempx.childNodes[i].XMLload)&&(this.XMLsource)))\n if((tempx.childNodes[i].unParsed)||((!tempx.childNodes[i].XMLload)&&(this.XMLsource)))\n
{\n {\n
...@@ -543,7 +549,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -543,7 +549,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
}\n }\n
if(this.childCalc==4)\n if(this.childCalc==4)\n
{\n {\n
var zCount=tempx.childNodes[i]._acc;\n zCount=tempx.childNodes[i]._acc;\n
if(zCount)\n if(zCount)\n
tempx.childNodes[i].span.innerHTML=tempx.childNodes[i].label+this.htmlcA+zCount+this.htmlcB;\n tempx.childNodes[i].span.innerHTML=tempx.childNodes[i].label+this.htmlcA+zCount+this.htmlcB;\n
}\n }\n
...@@ -562,12 +568,13 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -562,12 +568,13 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
\n \n
\n \n
};\n }\n
\n \n
if((!tempx.unParsed)&&((tempx.XMLload)||(!this.XMLsource)))\n if((!tempx.unParsed)&&((tempx.XMLload)||(!this.XMLsource)))\n
tempx._acc=acc;\n tempx._acc=acc;\n
dhtmlObject._correctLine(tempx);\n dhtmlObject._correctLine(tempx);\n
dhtmlObject._correctPlus(tempx);\n dhtmlObject._correctPlus(tempx);\n
return "";\n
};\n };\n
\n \n
\n \n
...@@ -597,7 +604,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -597,7 +604,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
\n \n
dhtmlXTreeObject.prototype._correctPlus=function(itemObject){\n dhtmlXTreeObject.prototype._correctPlus=function(itemObject){\n
\n \n
var workArray=this.lineArray;\n workArray=this.lineArray;\n
if((this.XMLsource)&&(!itemObject.XMLload))\n if((this.XMLsource)&&(!itemObject.XMLload))\n
{\n {\n
var workArray=this.plusArray;\n var workArray=this.plusArray;\n
...@@ -608,12 +615,12 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -608,12 +615,12 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
{\n {\n
if((itemObject.htmlNode.childNodes[0].childNodes[1])&&(itemObject.htmlNode.childNodes[0].childNodes[1].style.display!="none"))\n if((itemObject.htmlNode.childNodes[0].childNodes[1])&&(itemObject.htmlNode.childNodes[0].childNodes[1].style.display!="none"))\n
{\n {\n
if(!itemObject.wsign)var workArray=this.minusArray;\n if(!itemObject.wsign)workArray=this.minusArray;\n
itemObject.htmlNode.childNodes[0].childNodes[0].childNodes[2].childNodes[0].src=this.imPath+itemObject.images[1];\n itemObject.htmlNode.childNodes[0].childNodes[0].childNodes[2].childNodes[0].src=this.imPath+itemObject.images[1];\n
}\n }\n
else\n else\n
{\n {\n
if(!itemObject.wsign)var workArray=this.plusArray;\n if(!itemObject.wsign)workArray=this.plusArray;\n
itemObject.htmlNode.childNodes[0].childNodes[0].childNodes[2].childNodes[0].src=this.imPath+itemObject.images[2];\n itemObject.htmlNode.childNodes[0].childNodes[0].childNodes[2].childNodes[0].src=this.imPath+itemObject.images[2];\n
}\n }\n
}\n }\n
...@@ -635,8 +642,8 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -635,8 +642,8 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
dhtmlXTreeObject.prototype._correctLine=function(itemObject){\n dhtmlXTreeObject.prototype._correctLine=function(itemObject){\n
var sNode=itemObject.parentObject;\n var sNode=itemObject.parentObject;\n
try{\n try{\n
if(sNode)\n if(sNode){\n
if((this._getLineStatus(itemObject.id,sNode)==0)||(!this.treeLinesOn))\n if((this._getLineStatus(itemObject.id,sNode)===0)||(!this.treeLinesOn))\n
{\n {\n
for(var i=1;i<=itemObject.childsCount;i++)\n for(var i=1;i<=itemObject.childsCount;i++)\n
{\n {\n
...@@ -644,35 +651,37 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -644,35 +651,37 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
itemObject.htmlNode.childNodes[0].childNodes[i].childNodes[0].style.backgroundRepeat="";\n itemObject.htmlNode.childNodes[0].childNodes[i].childNodes[0].style.backgroundRepeat="";\n
}\n }\n
}\n }\n
else\n }\n
for(var i=1;i<=itemObject.childsCount;i++)\n else{\n
for(i=1;i<=itemObject.childsCount;i++)\n
{\n {\n
itemObject.htmlNode.childNodes[0].childNodes[i].childNodes[0].style.backgroundImage="url("+this.imPath+"line1.gif)";\n itemObject.htmlNode.childNodes[0].childNodes[i].childNodes[0].style.backgroundImage="url("+this.imPath+"line1.gif)";\n
itemObject.htmlNode.childNodes[0].childNodes[i].childNodes[0].style.backgroundRepeat="repeat-y";\n itemObject.htmlNode.childNodes[0].childNodes[i].childNodes[0].style.backgroundRepeat="repeat-y";\n
}\n }\n
}\n }\n
catch(e){};\n }\n
catch(e){}\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype._getCountStatus=function(itemId,itemObject){\n dhtmlXTreeObject.prototype._getCountStatus=function(itemId,itemObject){\n
try{\n try{\n
if(itemObject.childsCount<=1){if(itemObject.id==this.rootId)return 4;else return 0;}\n if(itemObject.childsCount<=1){if(itemObject.id==this.rootId)return 4;else return 0;}\n
\n \n
if(itemObject.htmlNode.childNodes[0].childNodes[1].nodem.id==itemId)if(!itemObject.id)return 2;else return 1;\n if(itemObject.htmlNode.childNodes[0].childNodes[1].nodem.id==itemId){if(!itemObject.id)return 2;else return 1;}\n
if(itemObject.htmlNode.childNodes[0].childNodes[itemObject.childsCount].nodem.id==itemId)return 0;\n if(itemObject.htmlNode.childNodes[0].childNodes[itemObject.childsCount].nodem.id==itemId)return 0;\n
}\n }\n
catch(e){};\n catch(e){}\n
return 1;\n return 1;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype._getLineStatus =function(itemId,itemObject){\n dhtmlXTreeObject.prototype._getLineStatus =function(itemId,itemObject){\n
if(itemObject.htmlNode.childNodes[0].childNodes[itemObject.childsCount].nodem.id==itemId)return 0;\n if(itemObject.htmlNode.childNodes[0].childNodes[itemObject.childsCount].nodem.id==itemId)return 0;\n
return 1;\n return 1;\n
}\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype._HideShow=function(itemObject,mode){\n dhtmlXTreeObject.prototype._HideShow=function(itemObject,mode){\n
if((this.XMLsource)&&(!itemObject.XMLload)){itemObject.XMLload=1;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"id="+escape(itemObject.id));return;};\n if((this.XMLsource)&&(!itemObject.XMLload)){itemObject.XMLload=1;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"id="+escape(itemObject.id));return;}\n
\n \n
var Nodes=itemObject.htmlNode.childNodes[0].childNodes;var Count=Nodes.length;\n var Nodes=itemObject.htmlNode.childNodes[0].childNodes;var Count=Nodes.length;\n
if(Count>1){\n if(Count>1){\n
...@@ -688,33 +697,35 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -688,33 +697,35 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
Nodes[i].style.display=nodestyle;\n Nodes[i].style.display=nodestyle;\n
}\n }\n
this._correctPlus(itemObject);\n this._correctPlus(itemObject);\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype._getOpenState=function(itemObject){\n dhtmlXTreeObject.prototype._getOpenState=function(itemObject){\n
if(!itemObject)return;\n if(!itemObject)return -1;\n
var z=itemObject.htmlNode.childNodes[0].childNodes;\n var z=itemObject.htmlNode.childNodes[0].childNodes;\n
if(z.length<=1)return 0;\n if(z.length<=1)return 0;\n
if(z[1].style.display!="none")return 1;\n if(z[1].style.display!="none")return 1;\n
else return -1;\n return -1;\n
}\n };\n
\n \n
\n \n
\n \n
\n \n
dhtmlXTreeObject.prototype.onRowClick2=function(){\n dhtmlXTreeObject.prototype.onRowClick2=function(){\n
if(this.parentObject.treeNod.dblclickFuncHandler)if(!this.parentObject.treeNod.dblclickFuncHandler(this.parentObject.id))return 0;\n if(this.parentObject.treeNod.dblclickFuncHandler){if(!this.parentObject.treeNod.dblclickFuncHandler(this.parentObject.id))return 0;}\n
if((this.parentObject.closeble)&&(this.parentObject.closeble!="0"))\n if((this.parentObject.closeble)&&(this.parentObject.closeble!="0"))\n
this.parentObject.treeNod._HideShow(this.parentObject);\n this.parentObject.treeNod._HideShow(this.parentObject);\n
else\n else\n
this.parentObject.treeNod._HideShow(this.parentObject,2);\n this.parentObject.treeNod._HideShow(this.parentObject,2);\n
return -1;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype.onRowClick=function(){\n dhtmlXTreeObject.prototype.onRowClick=function(){\n
if(this.parentObject.treeNod.openFuncHandler)if(!this.parentObject.treeNod.openFuncHandler(this.parentObject.id,this.parentObject.treeNod._getOpenState(this.parentObject)))return 0;\n if(this.parentObject.treeNod.openFuncHandler){if(!this.parentObject.treeNod.openFuncHandler(this.parentObject.id,this.parentObject.treeNod._getOpenState(this.parentObject)))return 0;}\n
if((this.parentObject.closeble)&&(this.parentObject.closeble!="0"))\n if((this.parentObject.closeble)&&(this.parentObject.closeble!="0"))\n
this.parentObject.treeNod._HideShow(this.parentObject);\n this.parentObject.treeNod._HideShow(this.parentObject);\n
else\n else\n
this.parentObject.treeNod._HideShow(this.parentObject,2);\n this.parentObject.treeNod._HideShow(this.parentObject,2);\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -722,6 +733,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -722,6 +733,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
dhtmlXTreeObject.prototype.onRowClickDown=function(){\n dhtmlXTreeObject.prototype.onRowClickDown=function(){\n
var that=this.parentObject.treeNod;\n var that=this.parentObject.treeNod;\n
that._selectItem(this.parentObject);\n that._selectItem(this.parentObject);\n
return;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype._selectItem=function(node){\n dhtmlXTreeObject.prototype._selectItem=function(node){\n
...@@ -731,11 +743,11 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -731,11 +743,11 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
var z=node.htmlNode.childNodes[0].childNodes[0].childNodes[3].childNodes[0];\n var z=node.htmlNode.childNodes[0].childNodes[0].childNodes[3].childNodes[0];\n
z.className="selectedTreeRow";\n z.className="selectedTreeRow";\n
this.lastSelected=z.parentNode;\n this.lastSelected=z.parentNode;\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype._unselectItem=function(node){\n dhtmlXTreeObject.prototype._unselectItem=function(node){\n
node.htmlNode.childNodes[0].childNodes[0].childNodes[3].childNodes[0].className="standartTreeRow";\n node.htmlNode.childNodes[0].childNodes[0].childNodes[3].childNodes[0].className="standartTreeRow";\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype.onRowSelect=function(e,htmlObject,mode){\n dhtmlXTreeObject.prototype.onRowSelect=function(e,htmlObject,mode){\n
\n \n
...@@ -746,7 +758,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand ...@@ -746,7 +758,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
if(htmlObject.parentObject.scolor)htmlObject.parentObject.span.style.color=htmlObject.parentObject.scolor;\n if(htmlObject.parentObject.scolor)htmlObject.parentObject.span.style.color=htmlObject.parentObject.scolor;\n
if((htmlObject.parentObject.treeNod.lastSelected)&&(htmlObject.parentObject.treeNod.lastSelected!=htmlObject))\n if((htmlObject.parentObject.treeNod.lastSelected)&&(htmlObject.parentObject.treeNod.lastSelected!=htmlObject))\n
{\n {\n
var lastId=htmlObject.parentObject.treeNod.lastSelected.parentObject.id;\n lastId=htmlObject.parentObject.treeNod.lastSelected.parentObject.id;\n
htmlObject.parentObject.treeNod.lastSelected.parentObject.span.className="standartTreeRow";\n htmlObject.parentObject.treeNod.lastSelected.parentObject.span.className="standartTreeRow";\n
if(htmlObject.parentObject.treeNod.lastSelected.parentObject.acolor)htmlObject.parentObject.treeNod.lastSelected.parentObject.span.style.color=htmlObject.parentObject.treeNod.lastSelected.parentObject.acolor;\n if(htmlObject.parentObject.treeNod.lastSelected.parentObject.acolor)htmlObject.parentObject.treeNod.lastSelected.parentObject.span.style.color=htmlObject.parentObject.treeNod.lastSelected.parentObject.acolor;\n
}\n }\n
...@@ -773,26 +785,27 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -773,26 +785,27 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
var act=dhtmlObject.htmlNode.childNodes[0].childNodes;\n var act=dhtmlObject.htmlNode.childNodes[0].childNodes;\n
var flag1=0;var flag2=0;\n var flag1=0;var flag2=0;\n
if(act.length<2)return;\n if(act.length<2)return;\n
for(var i=1;i<act.length;i++)\n for(var i=1;i<act.length;i++){\n
if(act[i].nodem.checkstate==0)flag1=1;\n if(act[i].nodem.checkstate===0)flag1=1;\n
else if(act[i].nodem.checkstate==1)flag2=1;\n else if(act[i].nodem.checkstate==1)flag2=1;\n
else{flag1=1;flag2=1;break;}\n else{flag1=1;flag2=1;break;}}\n
\n \n
if((flag1)&&(flag2))this._setCheck(dhtmlObject,"notsure");\n if((flag1)&&(flag2))this._setCheck(dhtmlObject,"notsure");\n
else if(flag1)this._setCheck(dhtmlObject,false);\n else if(flag1)this._setCheck(dhtmlObject,false);\n
else this._setCheck(dhtmlObject,true);\n else this._setCheck(dhtmlObject,true);\n
\n \n
this._correctCheckStates(dhtmlObject.parentObject);\n this._correctCheckStates(dhtmlObject.parentObject);\n
}\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype.onCheckBoxClick=function(e){\n dhtmlXTreeObject.prototype.onCheckBoxClick=function(e){\n
if(this.treeNod.tscheck)\n if(this.treeNod.tscheck){\n
if(this.parentObject.checkstate==1)this.treeNod._setSubChecked(false,this.parentObject);\n if(this.parentObject.checkstate==1)this.treeNod._setSubChecked(false,this.parentObject);\n
else this.treeNod._setSubChecked(true,this.parentObject);\n else this.treeNod._setSubChecked(true,this.parentObject);\n
else\n }\n
else{\n
if(this.parentObject.checkstate==1)this.treeNod._setCheck(this.parentObject,false);\n if(this.parentObject.checkstate==1)this.treeNod._setCheck(this.parentObject,false);\n
else this.treeNod._setCheck(this.parentObject,true);\n else this.treeNod._setCheck(this.parentObject,true);}\n
this.treeNod._correctCheckStates(this.parentObject.parentObject);\n this.treeNod._correctCheckStates(this.parentObject.parentObject);\n
if(this.treeNod.checkFuncHandler)return(this.treeNod.checkFuncHandler(this.parentObject.id,this.parentObject.checkstate));\n if(this.treeNod.checkFuncHandler)return(this.treeNod.checkFuncHandler(this.parentObject.id,this.parentObject.checkstate));\n
else return true;\n else return true;\n
...@@ -922,6 +935,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -922,6 +935,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
var temp=this._globalIdStorageFind(itemId);\n var temp=this._globalIdStorageFind(itemId);\n
if(!temp)return 0;\n if(!temp)return 0;\n
this._xopenAll(temp);\n this._xopenAll(temp);\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -937,32 +951,35 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -937,32 +951,35 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
var temp=this._globalIdStorageFind(itemId);\n var temp=this._globalIdStorageFind(itemId);\n
if(!temp)return 0;\n if(!temp)return 0;\n
this._xcloseAll(temp);\n this._xcloseAll(temp);\n
return -1;\n
};\n };\n
\n \n
\n \n
\n \n
dhtmlXTreeObject.prototype.setUserData=function(itemId,name,value){\n dhtmlXTreeObject.prototype.setUserData=function(itemId,name,value){\n
var sNode=this._globalIdStorageFind(itemId);\n var sNode=this._globalIdStorageFind(itemId);\n
if(!sNode)return;\n if(!sNode)return -1;\n
if(name=="hint")sNode.htmlNode.childNodes[0].childNodes[0].title=value;\n if(name=="hint")sNode.htmlNode.childNodes[0].childNodes[0].title=value;\n
sNode.userData["t_"+name]=value;\n sNode.userData["t_"+name]=value;\n
if(!sNode._userdatalist)sNode._userdatalist=name;\n if(!sNode._userdatalist)sNode._userdatalist=name;\n
else sNode._userdatalist+=","+name;\n else sNode._userdatalist+=","+name;\n
return -1;\n
};\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype.getUserData=function(itemId,name){\n dhtmlXTreeObject.prototype.getUserData=function(itemId,name){\n
var sNode=this._globalIdStorageFind(itemId);\n var sNode=this._globalIdStorageFind(itemId);\n
if(!sNode)return;\n if(!sNode)return -1;\n
return sNode.userData["t_"+name];\n return sNode.userData["t_"+name];\n
};\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype.getSelectedItemId=function()\n dhtmlXTreeObject.prototype.getSelectedItemId=function()\n
{\n {\n
if(this.lastSelected)\n if(this.lastSelected){\n
if(this._globalIdStorageFind(this.lastSelected.parentObject.id))\n if(this._globalIdStorageFind(this.lastSelected.parentObject.id))\n
return this.lastSelected.parentObject.id;\n return this.lastSelected.parentObject.id;\n
}\n
return("");\n return("");\n
};\n };\n
\n \n
...@@ -981,10 +998,11 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -981,10 +998,11 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
\n \n
dhtmlXTreeObject.prototype.setItemColor=function(itemId,defaultColor,selectedColor)\n dhtmlXTreeObject.prototype.setItemColor=function(itemId,defaultColor,selectedColor)\n
{\n {\n
var temp= "";\n
if((itemId)&&(itemId.span))\n if((itemId)&&(itemId.span))\n
var temp=itemId;\n temp=itemId;\n
else\n else\n
var temp=this._globalIdStorageFind(itemId);\n temp=this._globalIdStorageFind(itemId);\n
if(!temp)return 0;\n if(!temp)return 0;\n
else{\n else{\n
if((this.lastSelected)&&(temp.tr==this.lastSelected.parentObject.tr))\n if((this.lastSelected)&&(temp.tr==this.lastSelected.parentObject.tr))\n
...@@ -995,6 +1013,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -995,6 +1013,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
if(selectedColor)temp.scolor=selectedColor;\n if(selectedColor)temp.scolor=selectedColor;\n
if(defaultColor)temp.acolor=defaultColor;\n if(defaultColor)temp.acolor=defaultColor;\n
}\n }\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1032,11 +1051,13 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -1032,11 +1051,13 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
if(!temp)return 0;\n if(!temp)return 0;\n
temp.id=newItemId;\n temp.id=newItemId;\n
temp.span.contextMenuId=newItemId;\n temp.span.contextMenuId=newItemId;\n
for(var i=0;i<this._globalIdStorageSize;i++)\n for(var i=0;i<this._globalIdStorageSize;i++){\n
if(this._globalIdStorage[i]==itemId)\n if(this._globalIdStorage[i]==itemId)\n
{\n {\n
this._globalIdStorage[i]=newItemId;\n this._globalIdStorage[i]=newItemId;\n
}\n }\n
}\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1064,6 +1085,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -1064,6 +1085,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
this._moveNode(temp,this.nodeCut.parentObject);\n this._moveNode(temp,this.nodeCut.parentObject);\n
this.clearCut();\n this.clearCut();\n
}\n }\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1095,7 +1117,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -1095,7 +1117,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
while(true){\n while(true){\n
z=this._getPrevNode(z);\n z=this._getPrevNode(z);\n
if((z==-1)){z=this.htmlNode;break;}\n if((z==-1)){z=this.htmlNode;break;}\n
if((z.tr.style.display=="")||(!z.parentObject))break;\n if((z.tr.style.display==="")||(!z.parentObject))break;\n
\n \n
\n \n
}\n }\n
...@@ -1109,13 +1131,13 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -1109,13 +1131,13 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
while(true){\n while(true){\n
z=this._getNextNode(z);\n z=this._getNextNode(z);\n
if((z==-1)){z=this.htmlNode;break;}\n if((z==-1)){z=this.htmlNode;break;}\n
if((z.tr.style.display=="")||(!z.parentObject))break;\n if((z.tr.style.display==="")||(!z.parentObject))break;\n
\n \n
\n \n
}\n }\n
\n \n
var nodeB=z;\n nodeB=z;\n
var nodeA=targetObject;\n nodeA=targetObject;\n
}\n }\n
\n \n
\n \n
...@@ -1136,7 +1158,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -1136,7 +1158,7 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
}\n }\n
else return this._moveNodeTo(itemObject,targetObject);\n else return this._moveNodeTo(itemObject,targetObject);\n
\n \n
}\n };\n
\n \n
\n \n
\n \n
...@@ -1146,11 +1168,11 @@ dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){\n ...@@ -1146,11 +1168,11 @@ dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){\n
var Count=target.childsCount-1;\n var Count=target.childsCount-1;\n
\n \n
if(zParent==Nodes[Count])return;\n if(zParent==Nodes[Count])return;\n
for(var i=0;i<Count;i++)\n for(var i=0;i<Count;i++){\n
if(Nodes[i]==Nodes[Count]){Nodes[i]=Nodes[i+1];Nodes[i+1]=Nodes[Count];}\n if(Nodes[i]==Nodes[Count]){Nodes[i]=Nodes[i+1];Nodes[i+1]=Nodes[Count];}\n
\n }\n
\n \n
for(var i=0;i<Count+1;i++)\n for(i=0;i<Count+1;i++)\n
{\n {\n
if(flag){\n if(flag){\n
var temp=Nodes[i];\n var temp=Nodes[i];\n
...@@ -1165,14 +1187,14 @@ dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){\n ...@@ -1165,14 +1187,14 @@ dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){\n
\n \n
\n \n
dhtmlXTreeObject.prototype._moveNodeTo=function(itemObject,targetObject,beforeNode){\n dhtmlXTreeObject.prototype._moveNodeTo=function(itemObject,targetObject,beforeNode){\n
\n var framesMove;\n
if(targetObject.mytype)\n if(targetObject.mytype)\n
var framesMove=(itemObject.treeNod.lWin!=targetObject.lWin);\n framesMove=(itemObject.treeNod.lWin!=targetObject.lWin);\n
else\n else\n
var framesMove=(itemObject.treeNod.lWin!=targetObject.treeNod.lWin);\n framesMove=(itemObject.treeNod.lWin!=targetObject.treeNod.lWin);\n
\n \n
if(this.dragFunc)if(!this.dragFunc(itemObject.id,targetObject.id,(beforeNode?beforeNode.id:null),itemObject.treeNod,targetObject.treeNod))return false;\n if(this.dragFunc){if(!this.dragFunc(itemObject.id,targetObject.id,(beforeNode?beforeNode.id:null),itemObject.treeNod,targetObject.treeNod))return false;}\n
if((targetObject.XMLload==0)&&(this.XMLsource))\n if((targetObject.XMLload===0)&&(this.XMLsource))\n
{\n {\n
targetObject.XMLload=1;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"id="+escape(targetObject.id));\n targetObject.XMLload=1;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"id="+escape(targetObject.id));\n
}\n }\n
...@@ -1227,7 +1249,7 @@ dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){\n ...@@ -1227,7 +1249,7 @@ dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){\n
tr.nodem=itemObject;\n tr.nodem=itemObject;\n
itemObject.parentObject=targetObject;\n itemObject.parentObject=targetObject;\n
\n \n
if(oldTree!=targetObject.treeNod){if(itemObject.treeNod._registerBranch(itemObject,oldTree))return;this._clearStyles(itemObject);this._redrawFrom(this,itemObject.parentObject);};\n if(oldTree!=targetObject.treeNod){if(itemObject.treeNod._registerBranch(itemObject,oldTree))return -1;this._clearStyles(itemObject);this._redrawFrom(this,itemObject.parentObject);}\n
\n \n
this._correctPlus(targetObject);\n this._correctPlus(targetObject);\n
this._correctLine(targetObject);\n this._correctLine(targetObject);\n
...@@ -1340,13 +1362,14 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1340,13 +1362,14 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
\n \n
dhtmlXTreeObject.prototype.enableTreeLines=function(mode){\n dhtmlXTreeObject.prototype.enableTreeLines=function(mode){\n
this.treeLinesOn=convertStringToBoolean(mode);\n this.treeLinesOn=convertStringToBoolean(mode);\n
}\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype.setImageArrays=function(arrayName,image1,image2,image3,image4,image5){\n dhtmlXTreeObject.prototype.setImageArrays=function(arrayName,image1,image2,image3,image4,image5){\n
switch(arrayName){\n switch(arrayName){\n
case "plus": this.plusArray[0]=image1;this.plusArray[1]=image2;this.plusArray[2]=image3;this.plusArray[3]=image4;this.plusArray[4]=image5;break;\n case "plus": this.plusArray[0]=image1;this.plusArray[1]=image2;this.plusArray[2]=image3;this.plusArray[3]=image4;this.plusArray[4]=image5;break;\n
case "minus": this.minusArray[0]=image1;this.minusArray[1]=image2;this.minusArray[2]=image3;this.minusArray[3]=image4;this.minusArray[4]=image5;break;\n case "minus": this.minusArray[0]=image1;this.minusArray[1]=image2;this.minusArray[2]=image3;this.minusArray[3]=image4;this.minusArray[4]=image5;break;\n
default: break;\n
}\n }\n
};\n };\n
\n \n
...@@ -1371,6 +1394,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1371,6 +1394,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
if(!temp)return 0;\n if(!temp)return 0;\n
if(temp.closeble)\n if(temp.closeble)\n
this._HideShow(temp,1);\n this._HideShow(temp,1);\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1410,13 +1434,15 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1410,13 +1434,15 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
\n \n
dhtmlXTreeObject.prototype.setItemCloseable=function(itemId,flag)\n dhtmlXTreeObject.prototype.setItemCloseable=function(itemId,flag)\n
{\n {\n
var temp;\n
flag=convertStringToBoolean(flag);\n flag=convertStringToBoolean(flag);\n
if((itemId)&&(itemId.span))\n if((itemId)&&(itemId.span))\n
var temp=itemId;\n temp=itemId;\n
else \n else \n
var temp=this._globalIdStorageFind(itemId);\n temp=this._globalIdStorageFind(itemId);\n
if(!temp)return 0;\n if(!temp)return 0;\n
temp.closeble=flag;\n temp.closeble=flag;\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1434,7 +1460,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1434,7 +1460,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
if((this.XMLsource)&&(!temp.XMLload))return true;\n if((this.XMLsource)&&(!temp.XMLload))return true;\n
else \n else \n
return temp.childsCount;\n return temp.childsCount;\n
};\n }\n
};\n };\n
\n \n
\n \n
...@@ -1448,6 +1474,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1448,6 +1474,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
temp.label=newLabel;\n temp.label=newLabel;\n
temp.span.innerHTML=newLabel;\n temp.span.innerHTML=newLabel;\n
temp.span.parentNode.title=newTooltip||"";\n temp.span.parentNode.title=newTooltip||"";\n
return -1;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype.refreshItem=function(itemId){\n dhtmlXTreeObject.prototype.refreshItem=function(itemId){\n
...@@ -1465,6 +1492,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1465,6 +1492,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
temp.images[2]=image3;\n temp.images[2]=image3;\n
temp.images[0]=image1;\n temp.images[0]=image1;\n
this._correctPlus(temp);\n this._correctPlus(temp);\n
return -1;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype.setItemImage=function(itemId,image1,image2)\n dhtmlXTreeObject.prototype.setItemImage=function(itemId,image1,image2)\n
...@@ -1478,6 +1506,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1478,6 +1506,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
}\n }\n
else temp.images[0]=image1;\n else temp.images[0]=image1;\n
this._correctPlus(temp);\n this._correctPlus(temp);\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1488,15 +1517,15 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1488,15 +1517,15 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
if(!temp)return 0;\n if(!temp)return 0;\n
\n \n
var z="";\n var z="";\n
for(i=0;i<temp.childsCount;i++)\n for(i=0;i<temp.childsCount;i++){\n
if(!z)z=temp.childNodes[i].id;\n if(!z)z=temp.childNodes[i].id;\n
else z+=","+temp.childNodes[i].id;\n else z+=","+temp.childNodes[i].id;}\n
return z;\n return z;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype.getAllSubItems =function(itemId){\n dhtmlXTreeObject.prototype.getAllSubItems =function(itemId){\n
return this._getAllSubItems(itemId);\n return this._getAllSubItems(itemId);\n
}\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype._getAllSubItems =function(itemId,z,node)\n dhtmlXTreeObject.prototype._getAllSubItems =function(itemId,z,node)\n
...@@ -1504,7 +1533,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1504,7 +1533,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
if(node)temp=node;\n if(node)temp=node;\n
else{\n else{\n
var temp=this._globalIdStorageFind(itemId);\n var temp=this._globalIdStorageFind(itemId);\n
};\n }\n
if(!temp)return 0;\n if(!temp)return 0;\n
\n \n
z="";\n z="";\n
...@@ -1512,7 +1541,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1512,7 +1541,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
{\n {\n
if(!z)z=temp.childNodes[i].id;\n if(!z)z=temp.childNodes[i].id;\n
else z+=","+temp.childNodes[i].id;\n else z+=","+temp.childNodes[i].id;\n
var zb=this._getAllSubItems(0,z,temp.childNodes[i])\n var zb=this._getAllSubItems(0,z,temp.childNodes[i]);\n
if(zb)z+=","+zb;\n if(zb)z+=","+zb;\n
}\n }\n
return z;\n return z;\n
...@@ -1532,6 +1561,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1532,6 +1561,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
this.onRowSelect(0,temp.htmlNode.childNodes[0].childNodes[0].childNodes[3],false);\n this.onRowSelect(0,temp.htmlNode.childNodes[0].childNodes[0].childNodes[3],false);\n
else\n else\n
this.onRowSelect(0,temp.htmlNode.childNodes[0].childNodes[0].childNodes[3],true);\n this.onRowSelect(0,temp.htmlNode.childNodes[0].childNodes[0].childNodes[3],true);\n
return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1551,8 +1581,8 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1551,8 +1581,8 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
Count--;\n Count--;\n
for(var i=0;i<Count;i++)\n for(var i=0;i<Count;i++)\n
{\n {\n
if(Nodes[i]==0){Nodes[i]=Nodes[i+1];Nodes[i+1]=0;}\n if(Nodes[i]===0){Nodes[i]=Nodes[i+1];Nodes[i+1]=0;}\n
};\n }\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype._deleteNode=function(itemId,htmlObject,skip){\n dhtmlXTreeObject.prototype._deleteNode=function(itemId,htmlObject,skip){\n
...@@ -1591,6 +1621,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje ...@@ -1591,6 +1621,7 @@ dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObje
this._correctLine(tempos2);\n this._correctLine(tempos2);\n
}\n }\n
if(this.tscheck)this._correctCheckStates(sN);\n if(this.tscheck)this._correctCheckStates(sN);\n
return -1;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype.setCheck=function(itemId,state){\n dhtmlXTreeObject.prototype.setCheck=function(itemId,state){\n
...@@ -1618,7 +1649,7 @@ dhtmlXTreeObject.prototype.setSubChecked=function(itemId,state){\n ...@@ -1618,7 +1649,7 @@ dhtmlXTreeObject.prototype.setSubChecked=function(itemId,state){\n
var sNode=this._globalIdStorageFind(itemId);\n var sNode=this._globalIdStorageFind(itemId);\n
this._setSubChecked(state,sNode);\n this._setSubChecked(state,sNode);\n
this._correctCheckStates(sNode.parentObject);\n this._correctCheckStates(sNode.parentObject);\n
}\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
...@@ -1631,31 +1662,32 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n ...@@ -1631,31 +1662,32 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
this._setSubCheckedXML(state,tag);\n this._setSubCheckedXML(state,tag);\n
}\n }\n
}\n }\n
}\n };\n
\n \n
\n \n
\n \n
dhtmlXTreeObject.prototype._setSubChecked=function(state,sNode){\n dhtmlXTreeObject.prototype._setSubChecked=function(state,sNode){\n
state=convertStringToBoolean(state);\n state=convertStringToBoolean(state);\n
if(!sNode)return;\n if(!sNode)return -1;\n
if(sNode.unParsed)\n if(sNode.unParsed)\n
this._setSubCheckedXML(state,sNode.unParsed)\n this._setSubCheckedXML(state,sNode.unParsed);\n
for(var i=0;i<sNode.childsCount;i++)\n for(var i=0;i<sNode.childsCount;i++)\n
{\n {\n
this._setSubChecked(state,sNode.childNodes[i]);\n this._setSubChecked(state,sNode.childNodes[i]);\n
};\n }\n
var z=sNode.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];\n var z=sNode.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];\n
\n \n
if(state)sNode.checkstate=1;\n if(state)sNode.checkstate=1;\n
else sNode.checkstate=0;\n else sNode.checkstate=0;\n
\n \n
z.src=this.imPath+this.checkArray[sNode.checkstate];\n z.src=this.imPath+this.checkArray[sNode.checkstate];\n
return -1;\n
};\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype.isItemChecked=function(itemId){\n dhtmlXTreeObject.prototype.isItemChecked=function(itemId){\n
var sNode=this._globalIdStorageFind(itemId);\n var sNode=this._globalIdStorageFind(itemId);\n
if(!sNode)return;\n if(!sNode)return -1;\n
return sNode.checkstate;\n return sNode.checkstate;\n
};\n };\n
\n \n
...@@ -1666,26 +1698,27 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n ...@@ -1666,26 +1698,27 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
\n \n
dhtmlXTreeObject.prototype.getAllChecked=function(){\n dhtmlXTreeObject.prototype.getAllChecked=function(){\n
return this._getAllChecked("","",1);\n return this._getAllChecked("","",1);\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype.getAllPartiallyChecked=function(){\n dhtmlXTreeObject.prototype.getAllPartiallyChecked=function(){\n
return this._getAllPartiallyChecked("","",1);\n return this._getAllPartiallyChecked("","",1);\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){\n dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){\n
return this._getAllChecked("","",0);\n return this._getAllChecked("","",0);\n
}\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype._getAllChecked=function(htmlNode,list,mode){\n dhtmlXTreeObject.prototype._getAllChecked=function(htmlNode,list,mode){\n
if(!htmlNode)htmlNode=this.htmlNode;\n if(!htmlNode)htmlNode=this.htmlNode;\n
if(((mode)&&(htmlNode.checkstate==1))||((!mode)&&(htmlNode.checkstate>0)))\n if(((mode)&&(htmlNode.checkstate==1))||((!mode)&&(htmlNode.checkstate>0))){\n
if(!htmlNode.nocheckbox){if(list)list+=","+htmlNode.id;else list=htmlNode.id;}\n if(!htmlNode.nocheckbox){if(list)list+=","+htmlNode.id;else list=htmlNode.id;}\n
}\n
var j=htmlNode.childsCount;\n var j=htmlNode.childsCount;\n
for(var i=0;i<j;i++)\n for(var i=0;i<j;i++)\n
{\n {\n
list=this._getAllChecked(htmlNode.childNodes[i],list,mode);\n list=this._getAllChecked(htmlNode.childNodes[i],list,mode);\n
};\n }\n
if(htmlNode.unParsed)\n if(htmlNode.unParsed)\n
list=this._getAllCheckedXML(htmlNode.unParsed,list,mode);\n list=this._getAllCheckedXML(htmlNode.unParsed,list,mode);\n
\n \n
...@@ -1694,13 +1727,14 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n ...@@ -1694,13 +1727,14 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
\n \n
dhtmlXTreeObject.prototype._getAllPartiallyChecked=function(htmlNode,list,mode){\n dhtmlXTreeObject.prototype._getAllPartiallyChecked=function(htmlNode,list,mode){\n
if(!htmlNode)htmlNode=this.htmlNode;\n if(!htmlNode)htmlNode=this.htmlNode;\n
if(((mode)&&(htmlNode.checkstate==2))||((!mode)&&(htmlNode.checkstate>0)))\n if(((mode)&&(htmlNode.checkstate==2))||((!mode)&&(htmlNode.checkstate>0))){\n
if(!htmlNode.nocheckbox){if(list)list+=","+htmlNode.id;else list=htmlNode.id;}\n if(!htmlNode.nocheckbox){if(list)list+=","+htmlNode.id;else list=htmlNode.id;}\n
}\n
var j=htmlNode.childsCount;\n var j=htmlNode.childsCount;\n
for(var i=0;i<j;i++)\n for(var i=0;i<j;i++)\n
{\n {\n
list=this._getAllPartiallyChecked(htmlNode.childNodes[i],list,mode);\n list=this._getAllPartiallyChecked(htmlNode.childNodes[i],list,mode);\n
};\n }\n
if(htmlNode.unParsed)\n if(htmlNode.unParsed)\n
list=this._getAllPartiallyCheckedXML(htmlNode.unParsed,list,mode);\n list=this._getAllPartiallyCheckedXML(htmlNode.unParsed,list,mode);\n
\n \n
...@@ -1715,14 +1749,15 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n ...@@ -1715,14 +1749,15 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
if(tNode.tagName=="item")\n if(tNode.tagName=="item")\n
{\n {\n
var z=tNode.getAttribute("checked");\n var z=tNode.getAttribute("checked");\n
if((z!=null)&&(z!="")&&(z!="0"))\n if((z!==null)&&(z!=="")&&(z!=="0")){\n
if(((z=="-1")&&(!mode))||(z!="-1"))\n if(((z=="-1")&&(!mode))||(z!="-1")){\n
if(list)list+=","+tNode.getAttribute("id");\n if(list)list+=","+tNode.getAttribute("id");\n
else list=htmlNode.id;\n else list=htmlNode.id;\n
\n }\n
}\n
list=this._getAllChecked(tNode,list,mode);\n list=this._getAllChecked(tNode,list,mode);\n
}\n }\n
};\n }\n
\n \n
if(list)return list;else return "";\n if(list)return list;else return "";\n
};\n };\n
...@@ -1735,14 +1770,14 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n ...@@ -1735,14 +1770,14 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
if(tNode.tagName=="item")\n if(tNode.tagName=="item")\n
{\n {\n
var z=tNode.getAttribute("checked");\n var z=tNode.getAttribute("checked");\n
if((z!=null)&&(z!="")&&(z!="0"))\n if((z!==null)&&(z!=="")&&(z!=="0")){\n
if(((z=="-1")&&(!mode))||(z!="-1"))\n if(((z=="-1")&&(!mode))||(z!="-1")){\n
if(list)list+=","+tNode.getAttribute("id");\n if(list)list+=","+tNode.getAttribute("id");\n
else list=htmlNode.id;\n else list=htmlNode.id;}\n
\n }\n
list=this._getAllPartiallyChecked(tNode,list,mode);\n list=this._getAllPartiallyChecked(tNode,list,mode);\n
}\n }\n
};\n }\n
\n \n
if(list)return list;else return "";\n if(list)return list;else return "";\n
};\n };\n
...@@ -1756,18 +1791,18 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n ...@@ -1756,18 +1791,18 @@ dhtmlXTreeObject.prototype._setSubCheckedXML=function(state,sNode){\n
for(var i=0;i<j;i++)\n for(var i=0;i<j;i++)\n
{\n {\n
this._deleteNode(sNode.childNodes[0].id,sNode.childNodes[0]);\n this._deleteNode(sNode.childNodes[0].id,sNode.childNodes[0]);\n
};\n }\n
};\n };\n
\n \n
\n \n
dhtmlXTreeObject.prototype.deleteItem=function(itemId,selectParent){\n dhtmlXTreeObject.prototype.deleteItem=function(itemId,selectParent){\n
this._deleteItem(itemId,selectParent);\n this._deleteItem(itemId,selectParent);\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n
selectParent=convertStringToBoolean(selectParent);\n selectParent=convertStringToBoolean(selectParent);\n
var sNode=this._globalIdStorageFind(itemId);\n var sNode=this._globalIdStorageFind(itemId);\n
if(!sNode)return;\n if(!sNode)return -1;\n
if(selectParent)this.selectItem(this.getParentId(this.getSelectedItemId()),1);\n if(selectParent)this.selectItem(this.getParentId(this.getSelectedItemId()),1);\n
else\n else\n
if(sNode==this.lastSelected.parentObject)\n if(sNode==this.lastSelected.parentObject)\n
...@@ -1775,7 +1810,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n ...@@ -1775,7 +1810,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n
if(!skip){\n if(!skip){\n
this._globalIdStorageRecSub(sNode);\n this._globalIdStorageRecSub(sNode);\n
\n \n
};\n }\n
var zTemp=sNode.parentObject;\n var zTemp=sNode.parentObject;\n
this._deleteNode(itemId,sNode,skip);\n this._deleteNode(itemId,sNode,skip);\n
this._correctPlus(zTemp);\n this._correctPlus(zTemp);\n
...@@ -1791,7 +1826,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n ...@@ -1791,7 +1826,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n
{\n {\n
this._globalIdStorageRecSub(itemObject.childNodes[i]);\n this._globalIdStorageRecSub(itemObject.childNodes[i]);\n
this._globalIdStorageSub(itemObject.childNodes[i].id);\n this._globalIdStorageSub(itemObject.childNodes[i].id);\n
};\n }\n
this._globalIdStorageSub(itemObject.id);\n this._globalIdStorageSub(itemObject.id);\n
};\n };\n
\n \n
...@@ -1801,7 +1836,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n ...@@ -1801,7 +1836,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n
if((!sNode)||(!sNode.parentObject))return(0);\n if((!sNode)||(!sNode.parentObject))return(0);\n
\n \n
this._attachChildNode(0,itemId,itemName,itemActionHandler,image1,image2,image3,optionStr,childs,sNode);\n this._attachChildNode(0,itemId,itemName,itemActionHandler,image1,image2,image3,optionStr,childs,sNode);\n
\n return -1;\n
};\n };\n
\n \n
\n \n
...@@ -1857,7 +1892,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n ...@@ -1857,7 +1892,7 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n
this.dadmodefix=0;\n this.dadmodefix=0;\n
\n \n
\n \n
if(this.dadmodec==0)\n if(this.dadmodec===0)\n
{\n {\n
htmlNode.parentObject.span.className=\'selectedTreeRow\';\n htmlNode.parentObject.span.className=\'selectedTreeRow\';\n
if(htmlNode.parentObject.scolor)htmlNode.parentObject.span.style.color=htmlNode.parentObject.scolor;\n if(htmlNode.parentObject.scolor)htmlNode.parentObject.span.style.color=htmlNode.parentObject.scolor;\n
...@@ -1874,11 +1909,11 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n ...@@ -1874,11 +1909,11 @@ dhtmlXTreeObject.prototype._deleteItem=function(itemId,selectParent,skip){\n
if(this.autoScroll)\n if(this.autoScroll)\n
{\n {\n
\n \n
if((a1-a2-parseInt(this.allTree.scrollTop))>(parseInt(this.allTree.offsetHeight)-50))\n if((a1-a2-parseInt(this.allTree.scrollTop,10))>(parseInt(this.allTree.offsetHeight,10)-50))\n
this.allTree.scrollTop=parseInt(this.allTree.scrollTop)+20;\n this.allTree.scrollTop=parseInt(this.allTree.scrollTop,10)+20;\n
\n \n
if((a1-a2)<(parseInt(this.allTree.scrollTop)+30))\n if((a1-a2)<(parseInt(this.allTree.scrollTop,10)+30))\n
this.allTree.scrollTop=parseInt(this.allTree.scrollTop)-20;\n this.allTree.scrollTop=parseInt(this.allTree.scrollTop,10)-20;\n
}\n }\n
}\n }\n
};\n };\n
...@@ -1894,14 +1929,14 @@ dhtmlXTreeObject.prototype._createDragNode=function(htmlObject){\n ...@@ -1894,14 +1929,14 @@ dhtmlXTreeObject.prototype._createDragNode=function(htmlObject){\n
dragSpan.style.position="absolute";\n dragSpan.style.position="absolute";\n
dragSpan.className="dragSpanDiv";\n dragSpan.className="dragSpanDiv";\n
return dragSpan;\n return dragSpan;\n
}\n };\n
\n \n
\n \n
\n \n
dhtmlXTreeObject.prototype._preventNsDrag=function(e){\n dhtmlXTreeObject.prototype._preventNsDrag=function(e){\n
if((e)&&(e.preventDefault)){e.preventDefault();return false;}\n if((e)&&(e.preventDefault)){e.preventDefault();return false;}\n
return false;\n return false;\n
}\n };\n
\n \n
dhtmlXTreeObject.prototype._drag=function(sourceHtmlObject,dhtmlObject,targetHtmlObject){\n dhtmlXTreeObject.prototype._drag=function(sourceHtmlObject,dhtmlObject,targetHtmlObject){\n
\n \n
...@@ -1922,11 +1957,7 @@ dhtmlXTreeObject.prototype._drag=function(sourceHtmlObject,dhtmlObject,targetHtm ...@@ -1922,11 +1957,7 @@ dhtmlXTreeObject.prototype._drag=function(sourceHtmlObject,dhtmlObject,targetHtm
z.selectItem(newID);\n z.selectItem(newID);\n
}\n }\n
\n \n
try{}\n };\n
catch(e){\n
return;\n
}\n
}\n
\n \n
dhtmlXTreeObject.prototype._dragIn=function(htmlObject,shtmlObject,x,y){\n dhtmlXTreeObject.prototype._dragIn=function(htmlObject,shtmlObject,x,y){\n
if(!htmlObject.parentObject)\n if(!htmlObject.parentObject)\n
...@@ -1949,14 +1980,16 @@ dhtmlXTreeObject.prototype._dragIn=function(htmlObject,shtmlObject,x,y){\n ...@@ -1949,14 +1980,16 @@ dhtmlXTreeObject.prototype._dragIn=function(htmlObject,shtmlObject,x,y){\n
return htmlObject;\n return htmlObject;\n
}\n }\n
else return 0;\n else return 0;\n
}\n };\n
\n
dhtmlXTreeObject.prototype._autoOpenItem=function(e,treeObject){\n dhtmlXTreeObject.prototype._autoOpenItem=function(e,treeObject){\n
treeObject.openItem(treeObject._autoOpenId);\n treeObject.openItem(treeObject._autoOpenId);\n
};\n };\n
\n
dhtmlXTreeObject.prototype._dragOut=function(htmlObject){\n dhtmlXTreeObject.prototype._dragOut=function(htmlObject){\n
this._clearMove(htmlObject);\n this._clearMove(htmlObject);\n
if(this._autoOpenTimer)clearTimeout(this._autoOpenTimer);\n if(this._autoOpenTimer)clearTimeout(this._autoOpenTimer);\n
}\n };\n
\n \n
\n \n
\n \n
...@@ -1997,7 +2030,7 @@ dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){\n ...@@ -1997,7 +2030,7 @@ dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>53275</int> </value> <value> <int>53613</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -57,17 +57,17 @@ ...@@ -57,17 +57,17 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
if "files" in context.REQUEST.keys():\n if "files" in context.REQUEST.keys():\n
files = context.REQUEST["files"]\n files = context.REQUEST["files"];\n
else:\n else:\n
files = None\n files = None;\n
\n \n
return \'\'\'\n return \'\'\'\n
var tree = null;\n var tree = null;\n
var business_template;\n var business_template;\n
var is_expanded=false;\n var is_expanded=false;\n
var is_showing_unmodified=false;\n var is_showing_unmodified=false;\n
var ie = document.all\n var ie = document.all;\n
var ns6 = document.getElementById&&!document.all\n var ns6 = document.getElementById&&!document.all;\n
var isMenu = false ;\n var isMenu = false ;\n
var menuSelObj = null ;\n var menuSelObj = null ;\n
var overpopupmenu = false;\n var overpopupmenu = false;\n
...@@ -83,42 +83,44 @@ return \'\'\'\n ...@@ -83,42 +83,44 @@ return \'\'\'\n
}\n }\n
\n \n
function showObject() {\n function showObject() {\n
var splash;\n
if (ns4) {\n if (ns4) {\n
var splash = document.splashScreen;\n splash = document.splashScreen;\n
\tsplash.visibility = "visible";\n \tsplash.visibility = "visible";\n
}\n }\n
if (ie4) {\n if (ie4) {\n
var splash = document.all.splashScreen;\n splash = document.all.splashScreen;\n
\tsplash.style.visibility = "visible";\n \tsplash.style.visibility = "visible";\n
}\n }\n
if (upLevel){\n if (upLevel){\n
var splash = document.getElementById("splashScreen");\n splash = document.getElementById("splashScreen");\n
splash.style.visibility = "visible";\n splash.style.visibility = "visible";\n
}\n }\n
}\n }\n
\n \n
function hideObject() {\n function hideObject() {\n
var splash;\n
if (ns4) {\n if (ns4) {\n
var splash = document.splashScreen;\n splash = document.splashScreen;\n
\t splash.visibility = "hide";\n \t splash.visibility = "hide";\n
}\n }\n
if (ie4) {\n if (ie4) {\n
var splash = document.all.splashScreen;\n splash = document.all.splashScreen;\n
\t splash.style.visibility = "hidden";\n \t splash.style.visibility = "hidden";\n
}\n }\n
if (upLevel){\n if (upLevel){\n
var splash = document.getElementById("splashScreen");\n splash = document.getElementById("splashScreen");\n
splash.style.visibility = "hidden";\n splash.style.visibility = "hidden";\n
}\n }\n
}\n }\n
\n \n
function preLoadImages(){\n function preLoadImages(){\n
var imSrcAr = new \n var imSrcAr = new\n
Array(\'document.png\',\'iconCheckAll.gif\',\'line2.gif\',\'minus2.gif\',\'minus5.gif\',\'plus2.gif\',\'plus5.gif\',\'folder_open.png\',\'iconCheckGray.gif\',\'line3.gif\',\'minus3.gif\',\'minus_ar.gif\',\'plus3.gif\',\'plus_ar.gif\',\'folder.png\',\'line1.gif\',\'line4.gif\',\'minus4.gif\',\'minus.gif\',\'plus4.gif\',\'plus.gif\',\'iconUnCheckAll.gif\', \'blank.gif\')\n Array(\'document.png\',\'iconCheckAll.gif\',\'line2.gif\',\'minus2.gif\',\'minus5.gif\',\'plus2.gif\',\'plus5.gif\',\'folder_open.png\',\'iconCheckGray.gif\',\'line3.gif\',\'minus3.gif\',\'minus_ar.gif\',\'plus3.gif\',\'plus_ar.gif\',\'folder.png\',\'line1.gif\',\'line4.gif\',\'minus4.gif\',\'minus.gif\',\'plus4.gif\',\'plus.gif\',\'iconUnCheckAll.gif\', \'blank.gif\');\n
var imAr = new Array(0);\n var imAr = new Array(0);\n
for(var i=0;i<imSrcAr.length;i++){\n for(var i=0;i<imSrcAr.length;i++){\n
imAr[imAr.length] = new Image();\n imAr[imAr.length] = new Image();\n
imAr[imAr.length-1].src = \'ERP5VCS_imgs/\'+imSrcAr[i]\n imAr[imAr.length-1].src = \'ERP5VCS_imgs/\'+imSrcAr[i];\n
}\n }\n
}\n }\n
\n \n
...@@ -128,11 +130,11 @@ return \'\'\'\n ...@@ -128,11 +130,11 @@ return \'\'\'\n
tree=new dhtmlXTreeObject(document.getElementById(\'treebox1\'),\'100%%\',\'100%%\',0);\n tree=new dhtmlXTreeObject(document.getElementById(\'treebox1\'),\'100%%\',\'100%%\',0);\n
tree.setImagePath(\'ERP5VCS_imgs/\');\n tree.setImagePath(\'ERP5VCS_imgs/\');\n
tree.setDragHandler();\n tree.setDragHandler();\n
tree.enableCheckBoxes(true)\n tree.enableCheckBoxes(true);\n
tree.enableThreeStateCheckboxes(true);\n tree.enableThreeStateCheckboxes(true);\n
tree.enableDragAndDrop(false)\n tree.enableDragAndDrop(false);\n
tree.loadXML(\'tree.xml?bt_id=%(btId)s&do_extract:int=\' + do_extract, hideObject)\n tree.loadXML(\'tree.xml?bt_id=%(btId)s&do_extract:int=\' + do_extract, hideObject);\n
tree.setOnClickHandler(showMenu)\n tree.setOnClickHandler(showMenu);\n
}\n }\n
\n \n
function expandCollapse(){\n function expandCollapse(){\n
...@@ -148,9 +150,8 @@ return \'\'\'\n ...@@ -148,9 +150,8 @@ return \'\'\'\n
function showNormalFiles(){\n function showNormalFiles(){\n
showObject();\n showObject();\n
is_expanded = false;\n is_expanded = false;\n
is_showing_unmodified = 1 - is_showing_unmodified\n is_showing_unmodified = 1 - is_showing_unmodified;\n
tree.loadXML(\'tree.xml?bt_id=%(btId)s&do_extract:int=0&show_unmodified:int=\'\n tree.loadXML(\'tree.xml?bt_id=%(btId)s&do_extract:int=0&show_unmodified:int=\'+ is_showing_unmodified, hideObject);\n
+ is_showing_unmodified, hideObject);\n
tree.refreshItem(0);\n tree.refreshItem(0);\n
}\n }\n
\n \n
...@@ -172,13 +173,16 @@ return \'\'\'\n ...@@ -172,13 +173,16 @@ return \'\'\'\n
\n \n
for(i=0;i<filesCheckedArray.length; ++i){\n for(i=0;i<filesCheckedArray.length; ++i){\n
if(tree.getItemColor(filesCheckedArray[i])==\'red\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'red\'){\n
FilesRemovedArray[nbRemoved++]=filesCheckedArray[i];\n nbRemoved = nbRemoved+1;\n
FilesRemovedArray[nbRemoved]=filesCheckedArray[i];\n
}else{\n }else{\n
if(tree.getItemColor(filesCheckedArray[i])==\'green\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'green\'){\n
FilesAddedArray[nbAdded++]=filesCheckedArray[i];\n nbAdded = nbAdded+1;\n
FilesAddedArray[nbAdded]=filesCheckedArray[i];\n
}else\n }else\n
if(tree.getItemColor(filesCheckedArray[i])==\'orange\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'orange\'){\n
FilesModifiedArray[nbModified++]=filesCheckedArray[i];\n nbModified = nbModified+1;\n
FilesModifiedArray[nbModified]=filesCheckedArray[i];\n
}\n }\n
}\n }\n
}\n }\n
...@@ -190,31 +194,33 @@ return \'\'\'\n ...@@ -190,31 +194,33 @@ return \'\'\'\n
for(i=0;i<filesPartiallyCheckedArray.length; ++i){\n for(i=0;i<filesPartiallyCheckedArray.length; ++i){\n
// useless for removed directories\n // useless for removed directories\n
if(tree.getItemColor(filesPartiallyCheckedArray[i])==\'green\'){\n if(tree.getItemColor(filesPartiallyCheckedArray[i])==\'green\'){\n
FilesAddedArray[nbAdded++]=filesPartiallyCheckedArray[i];\n nbAdded = nbAdded+1;\n
FilesAddedArray[nbAdded]=filesPartiallyCheckedArray[i];\n
}else\n }else\n
if(tree.getItemColor(filesPartiallyCheckedArray[i])==\'orange\'){\n if(tree.getItemColor(filesPartiallyCheckedArray[i])==\'orange\'){\n
FilesModifiedArray[nbModified++]=filesPartiallyCheckedArray[i];\n nbModified = nbModified+1;\n
FilesModifiedArray[nbModified]=filesPartiallyCheckedArray[i];\n
}\n }\n
}\n }\n
if(nbModified!=0){\n if(nbModified!==0){\n
filesModified=FilesModifiedArray.join(\',\');\n filesModified=FilesModifiedArray.join(\',\');\n
}else{\n }else{\n
filesModified=\'none\';\n filesModified=\'none\';\n
}\n }\n
form.modified.value=filesModified;\n form.modified.value=filesModified;\n
if(nbAdded!=0){\n if(nbAdded!==0){\n
filesAdded=FilesAddedArray.join(\',\');\n filesAdded=FilesAddedArray.join(\',\');\n
}else{\n }else{\n
filesAdded=\'none\';\n filesAdded=\'none\';\n
}\n }\n
form.added.value=filesAdded;\n form.added.value=filesAdded;\n
if(nbRemoved!=0){\n if(nbRemoved!==0){\n
filesRemoved=FilesRemovedArray.reverse().join(\',\');\n filesRemoved=FilesRemovedArray.reverse().join(\',\');\n
}else{\n }else{\n
filesRemoved=\'none\';\n filesRemoved=\'none\';\n
}\n }\n
form.removed.value=filesRemoved;\n form.removed.value=filesRemoved;\n
if (nbRemoved==0 && nbAdded==0 && nbModified==0) {\n if (nbRemoved===0 && nbAdded===0 && nbModified===0) {\n
alert(\'Nothing to commit !\');\n alert(\'Nothing to commit !\');\n
} else {\n } else {\n
submitAction(form,\'BusinessTemplate_doVcsCommit\');\n submitAction(form,\'BusinessTemplate_doVcsCommit\');\n
...@@ -239,35 +245,38 @@ return \'\'\'\n ...@@ -239,35 +245,38 @@ return \'\'\'\n
}\n }\n
for(i=0;i<filesCheckedArray.length; ++i){\n for(i=0;i<filesCheckedArray.length; ++i){\n
if(tree.getItemColor(filesCheckedArray[i])==\'red\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'red\'){\n
FilesRemovedArray[nbRemoved++]=filesCheckedArray[i];\n nbRemoved = nbRemoved+1;\n
FilesRemovedArray[nbRemoved]=filesCheckedArray[i];\n
}else{\n }else{\n
if(tree.getItemColor(filesCheckedArray[i])==\'green\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'green\'){\n
FilesAddedArray[nbAdded++]=filesCheckedArray[i];\n nbAdded = nbAdded+1;\n
FilesAddedArray[nbAdded]=filesCheckedArray[i];\n
}else\n }else\n
if(tree.getItemColor(filesCheckedArray[i])==\'orange\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'orange\'){\n
FilesModifiedArray[nbModified++]=filesCheckedArray[i];\n nbModified = nbModified+1;\n
FilesModifiedArray[nbModified]=filesCheckedArray[i];\n
}\n }\n
}\n }\n
}\n }\n
if(nbModified!=0){\n if(nbModified!==0){\n
filesModified=FilesModifiedArray.join(\',\');\n filesModified=FilesModifiedArray.join(\',\');\n
}else{\n }else{\n
filesModified=\'none\';\n filesModified=\'none\';\n
}\n }\n
form.modified.value=filesModified;\n form.modified.value=filesModified;\n
if(nbAdded!=0){\n if(nbAdded!==0){\n
filesAdded=FilesAddedArray.join(\',\');\n filesAdded=FilesAddedArray.join(\',\');\n
}else{\n }else{\n
filesAdded=\'none\';\n filesAdded=\'none\';\n
}\n }\n
form.added.value=filesAdded;\n form.added.value=filesAdded;\n
if(nbRemoved!=0){\n if(nbRemoved!==0){\n
filesRemoved=FilesRemovedArray.join(\',\');\n filesRemoved=FilesRemovedArray.join(\',\');\n
}else{\n }else{\n
filesRemoved=\'none\';\n filesRemoved=\'none\';\n
}\n }\n
form.removed.value=filesRemoved;\n form.removed.value=filesRemoved;\n
if (nbRemoved==0 && nbAdded==0 && nbModified==0) {\n if (nbRemoved===0 && nbAdded===0 && nbModified===0) {\n
alert("Nothing to revert !");\n alert("Nothing to revert !");\n
} else {\n } else {\n
if(confirm(\'Are you sure you want to revert changes?\')){\n if(confirm(\'Are you sure you want to revert changes?\')){\n
...@@ -293,35 +302,38 @@ return \'\'\'\n ...@@ -293,35 +302,38 @@ return \'\'\'\n
}\n }\n
for(i=0;i<filesCheckedArray.length; ++i){\n for(i=0;i<filesCheckedArray.length; ++i){\n
if(tree.getItemColor(filesCheckedArray[i])==\'red\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'red\'){\n
FilesRemovedArray[nbRemoved++]=filesCheckedArray[i];\n nbRemoved = nbRemoved+1;\n
FilesRemovedArray[nbRemoved]=filesCheckedArray[i];\n
}else{\n }else{\n
if(tree.getItemColor(filesCheckedArray[i])==\'green\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'green\'){\n
FilesAddedArray[nbAdded++]=filesCheckedArray[i];\n nbAdded = nbAdded+1;\n
FilesAddedArray[nbAdded]=filesCheckedArray[i];\n
}else\n }else\n
if(tree.getItemColor(filesCheckedArray[i])==\'orange\'){\n if(tree.getItemColor(filesCheckedArray[i])==\'orange\'){\n
FilesModifiedArray[nbModified++]=filesCheckedArray[i];\n nbModified = nbModified+1;\n
FilesModifiedArray[nbModified]=filesCheckedArray[i];\n
}\n }\n
}\n }\n
}\n }\n
if(nbModified!=0){\n if(nbModified!==0){\n
filesModified=FilesModifiedArray.join(\',\');\n filesModified=FilesModifiedArray.join(\',\');\n
}else{\n }else{\n
filesModified=\'none\';\n filesModified=\'none\';\n
}\n }\n
form.modified.value=filesModified;\n form.modified.value=filesModified;\n
if(nbAdded!=0){\n if(nbAdded!==0){\n
filesAdded=FilesAddedArray.join(\',\');\n filesAdded=FilesAddedArray.join(\',\');\n
}else{\n }else{\n
filesAdded=\'none\';\n filesAdded=\'none\';\n
}\n }\n
form.added.value=filesAdded;\n form.added.value=filesAdded;\n
if(nbRemoved!=0){\n if(nbRemoved!==0){\n
filesRemoved=FilesRemovedArray.join(\',\');\n filesRemoved=FilesRemovedArray.join(\',\');\n
}else{\n }else{\n
filesRemoved=\'none\';\n filesRemoved=\'none\';\n
}\n }\n
form.removed.value=filesRemoved;\n form.removed.value=filesRemoved;\n
if (nbRemoved==0 && nbAdded==0 && nbModified==0) {\n if (nbRemoved===0 && nbAdded===0 && nbModified===0) {\n
alert(\'Nothing to diff !\');\n alert(\'Nothing to diff !\');\n
} else {\n } else {\n
submitAction(form,\'BusinessTemplate_viewVcsDiff\');\n submitAction(form,\'BusinessTemplate_viewVcsDiff\');\n
...@@ -333,7 +345,7 @@ return \'\'\'\n ...@@ -333,7 +345,7 @@ return \'\'\'\n
var obj = ns6 ? e.target.parentNode : event.srcElement.parentElement;\n var obj = ns6 ? e.target.parentNode : event.srcElement.parentElement;\n
if( isMenu )\n if( isMenu )\n
{\n {\n
if( overpopupmenu == false )\n if( overpopupmenu === false )\n
{\n {\n
isMenu = false ;\n isMenu = false ;\n
overpopupmenu = false;\n overpopupmenu = false;\n
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts50974111.7</string> </value> <value> <string>ts68192110.7</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -53,15 +53,17 @@ ...@@ -53,15 +53,17 @@
}\n }\n
\n \n
function DisplayToolBarMenu() {\n function DisplayToolBarMenu() {\n
var Z;\n
var i=0;\n
if (document.getElementById || document.all) {\n if (document.getElementById || document.all) {\n
var Z="<div style=\'text:align: center;\'><table cellpadding=\'1\' cellspacing=\'1\' style=\'border:0;margin-left:auto; margin-right:auto;\'><tr>";\n Z="<div style=\'text:align: center;\'><table cellpadding=\'1\' cellspacing=\'1\' style=\'border:0;margin-left:auto; margin-right:auto;\'><tr>";\n
for (var i=0; i<this.nb; i++) {\n for (i=0; i<this.nb; i++) {\n
Z+="<td onMouseOver=\'DisplayToolBarMenuOver(this,"+i+")\' onMouseOut=\'DisplayToolBarMenuOut(this,"+i+")\' onMouseDown=\'DisplayToolBarMenuDown(this,"+i+")\' onClick=\'DisplayToolBarMenuClick(this,"+i+")\' style=\'border-style:solid;border-width:1px;border-color:"+this.colBackground+";"+this.style+";cursor:pointer\'><img name=\'MenuToolBarIMG"+i+"\' src=\'"+this[i].imgOff+"\' border=0 width="+this.width+" height="+this.height+" align=top>&nbsp;"+this[i].text+"</TD>";\n Z+="<td onMouseOver=\'DisplayToolBarMenuOver(this,"+i+")\' onMouseOut=\'DisplayToolBarMenuOut(this,"+i+")\' onMouseDown=\'DisplayToolBarMenuDown(this,"+i+")\' onClick=\'DisplayToolBarMenuClick(this,"+i+")\' style=\'border-style:solid;border-width:1px;border-color:"+this.colBackground+";"+this.style+";cursor:pointer\'><img name=\'MenuToolBarIMG"+i+"\' src=\'"+this[i].imgOff+"\' border=0 width="+this.width+" height="+this.height+" align=top>&nbsp;"+this[i].text+"</TD>";\n
}\n }\n
Z+="</tr></table></div";\n Z+="</tr></table></div";\n
} else {\n } else {\n
var Z="| &nbsp;";\n Z="| &nbsp;";\n
for (var i=0; i<this.nb; i++) {\n for (i=0; i<this.nb; i++) {\n
Z+="<a href=\'"+this[i].url+"\' style=\'"+this.style+"\'><img name=\'MenuToolBarIMG"+i+"\' src=\\""+this[i].imgOff+"\\" border=0 width="+this.width+" height="+this.height+" align=top>&nbsp;"+this[i].text+"</a>&nbsp;|&nbsp;";\n Z+="<a href=\'"+this[i].url+"\' style=\'"+this.style+"\'><img name=\'MenuToolBarIMG"+i+"\' src=\\""+this[i].imgOff+"\\" border=0 width="+this.width+" height="+this.height+" align=top>&nbsp;"+this[i].text+"</a>&nbsp;|&nbsp;";\n
}\n }\n
}\n }\n
...@@ -123,7 +125,7 @@ ...@@ -123,7 +125,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>3648</int> </value> <value> <int>3668</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts45611277.21</string> </value> <value> <string>ts68192545.48</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -89,9 +89,10 @@ function Window(el) {\n ...@@ -89,9 +89,10 @@ function Window(el) {\n
\n \n
mapName = this.titleBarButtons.useMap.substr(1);\n mapName = this.titleBarButtons.useMap.substr(1);\n
mapList = document.getElementsByTagName("MAP");\n mapList = document.getElementsByTagName("MAP");\n
for (i = 0; i \074 mapList.length; i++)\n for (i = 0; i \074 mapList.length; i++){\n
if (mapList[i].name == mapName)\n if (mapList[i].name == mapName)\n
this.titleBarMap = mapList[i];\n this.titleBarMap = mapList[i];\n
}\n
\n \n
// Save colors.\n // Save colors.\n
\n \n
...@@ -134,9 +135,10 @@ function Window(el) {\n ...@@ -134,9 +135,10 @@ function Window(el) {\n
this.clientArea.parentWindow = this;\n this.clientArea.parentWindow = this;\n
this.clientArea.onclick = winClientAreaClick;\n this.clientArea.onclick = winClientAreaClick;\n
\n \n
for (i = 0; i \074 this.titleBarMap.childNodes.length; i++)\n for (i = 0; i \074 this.titleBarMap.childNodes.length; i++){\n
if (this.titleBarMap.childNodes[i].tagName == "AREA")\n if (this.titleBarMap.childNodes[i].tagName == "AREA")\n
this.titleBarMap.childNodes[i].parentWindow = this;\n this.titleBarMap.childNodes[i].parentWindow = this;\n
}\n
\n \n
// Calculate the minimum width and height values for resizing\n // Calculate the minimum width and height values for resizing\n
// and fix any initial display problems.\n // and fix any initial display problems.\n
...@@ -147,7 +149,7 @@ function Window(el) {\n ...@@ -147,7 +149,7 @@ function Window(el) {\n
// the window.\n // the window.\n
\n \n
initLt = this.frame.style.left;\n initLt = this.frame.style.left;\n
initWd = parseInt(this.frame.style.width);\n initWd = parseInt(this.frame.style.width,10);\n
this.frame.style.right = -this.titleBarText.offsetWidth + "px";\n this.frame.style.right = -this.titleBarText.offsetWidth + "px";\n
\n \n
// For IE, start calculating the value to use when setting\n // For IE, start calculating the value to use when setting\n
...@@ -323,7 +325,7 @@ function winMakeActive() {\n ...@@ -323,7 +325,7 @@ function winMakeActive() {\n
this.clientArea.style.overflow = "auto";\n this.clientArea.style.overflow = "auto";\n
if (this.inactiveButtonsImage)\n if (this.inactiveButtonsImage)\n
this.titleBarButtons.src = this.activeButtonsImage;\n this.titleBarButtons.src = this.activeButtonsImage;\n
this.frame.style.zIndex = ++winCtrl.maxzIndex;\n this.frame.style.zIndex = winCtrl.maxzIndex + 1;\n
winCtrl.active = this;\n winCtrl.active = this;\n
}\n }\n
\n \n
...@@ -459,7 +461,7 @@ function winResizeCursorSet(event) {\n ...@@ -459,7 +461,7 @@ function winResizeCursorSet(event) {\n
xOff = event.layerX;\n xOff = event.layerX;\n
yOff = event.layerY;\n yOff = event.layerY;\n
}\n }\n
winCtrl.resizeDirection = ""\n winCtrl.resizeDirection = "";\n
if (yOff \074= winCtrl.resizeCornerSize)\n if (yOff \074= winCtrl.resizeCornerSize)\n
winCtrl.resizeDirection += "n";\n winCtrl.resizeDirection += "n";\n
else if (yOff \076= this.parentWindow.frame.offsetHeight - winCtrl.resizeCornerSize)\n else if (yOff \076= this.parentWindow.frame.offsetHeight - winCtrl.resizeCornerSize)\n
...@@ -471,7 +473,7 @@ function winResizeCursorSet(event) {\n ...@@ -471,7 +473,7 @@ function winResizeCursorSet(event) {\n
\n \n
// If not on window edge, restore cursor and exit.\n // If not on window edge, restore cursor and exit.\n
\n \n
if (winCtrl.resizeDirection == "") {\n if (winCtrl.resizeDirection === "") {\n
this.onmouseout(event);\n this.onmouseout(event);\n
return;\n return;\n
}\n }\n
...@@ -668,7 +670,7 @@ function winFindByClassName(el, className) {\n ...@@ -668,7 +670,7 @@ function winFindByClassName(el, className) {\n
\n \n
for (i = 0; i \074 el.childNodes.length; i++) {\n for (i = 0; i \074 el.childNodes.length; i++) {\n
tmp = winFindByClassName(el.childNodes[i], className);\n tmp = winFindByClassName(el.childNodes[i], className);\n
if (tmp != null)\n if (tmp !== null)\n
return tmp;\n return tmp;\n
}\n }\n
\n \n
...@@ -703,9 +705,10 @@ function winInit() {\n ...@@ -703,9 +705,10 @@ function winInit() {\n
// Initialize windows and build list.\n // Initialize windows and build list.\n
\n \n
elList = document.getElementsByTagName("DIV");\n elList = document.getElementsByTagName("DIV");\n
for (var i = 0; i \074 elList.length; i++)\n for (var i = 0; i \074 elList.length; i++){\n
if (elList[i].className == "window")\n if (elList[i].className == "window")\n
winList[elList[i].id] = new Window(elList[i]);\n winList[elList[i].id] = new Window(elList[i]);\n
}\n
}\n }\n
// run initialization code after page loads.\n // run initialization code after page loads.\n
//window.onload = winInit;\n //window.onload = winInit;\n
...@@ -718,7 +721,7 @@ function winInit() {\n ...@@ -718,7 +721,7 @@ function winInit() {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>18649</int> </value> <value> <int>18672</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
671 672
\ No newline at end of file \ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts21283797.18</string> </value> <value> <string>ts67858535.25</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -65,7 +65,7 @@ function toggleHiddenFormatDialogSelection(){\n ...@@ -65,7 +65,7 @@ function toggleHiddenFormatDialogSelection(){\n
}\n }\n
\n \n
function requestPasswordReset(script_name){\n function requestPasswordReset(script_name){\n
$("#reference").attr("value", $("#__ac_name").val()) \n $("#reference").attr("value", $("#__ac_name").val());\n
// reset __ac_name & __ac_password in case they have been filled by browser\n // reset __ac_name & __ac_password in case they have been filled by browser\n
$("#__ac_name").attr("value", "");\n $("#__ac_name").attr("value", "");\n
$("#__ac_password").attr("value", "");\n $("#__ac_password").attr("value", "");\n
...@@ -73,7 +73,7 @@ function requestPasswordReset(script_name){\n ...@@ -73,7 +73,7 @@ function requestPasswordReset(script_name){\n
main_form = $("#main_form");\n main_form = $("#main_form");\n
main_form.attr("action", script_name);\n main_form.attr("action", script_name);\n
main_form.submit();\n main_form.submit();\n
};\n }\n
\n \n
//enable or disable right side search result preview\n //enable or disable right side search result preview\n
var show_preview=false;\n var show_preview=false;\n
...@@ -84,7 +84,7 @@ function togglePreview(dom_id,path){\n ...@@ -84,7 +84,7 @@ function togglePreview(dom_id,path){\n
/* \n /* \n
Enable or disable right preview in search mode listbox style. \n Enable or disable right preview in search mode listbox style. \n
*/\n */\n
listbox_container = $("#"+dom_id).parents("div.listbox-container")\n listbox_container = $("#"+dom_id).parents("div.listbox-container");\n
if(!$("#listbox-preview").length){\n if(!$("#listbox-preview").length){\n
// init only once per listbox\n // init only once per listbox\n
listbox_container.append(\'<div id="listbox-preview"><img src="ajax-loader.gif" title="Loading" alt="Loading" /><p>Loading...</p> </div>\');\n listbox_container.append(\'<div id="listbox-preview"><img src="ajax-loader.gif" title="Loading" alt="Loading" /><p>Loading...</p> </div>\');\n
...@@ -103,13 +103,13 @@ function formatPreview(dom_id, path){\n ...@@ -103,13 +103,13 @@ function formatPreview(dom_id, path){\n
*/\n */\n
popup = $("#listbox-preview");\n popup = $("#listbox-preview");\n
dom_object = $("#"+dom_id);\n dom_object = $("#"+dom_id);\n
parent_row = dom_object.parents("tr").first()\n parent_row = dom_object.parents("tr").first();\n
row_object = dom_object.parents("tr").first();\n row_object = dom_object.parents("tr").first();\n
class_name = row_object.attr("class"); \n class_name = row_object.attr("class"); \n
class_name = class_name.replace("listbox-data-line-","");\n class_name = class_name.replace("listbox-data-line-","");\n
class_name = class_name.replace("DataA","");\n class_name = class_name.replace("DataA","");\n
class_name = class_name.replace("DataB","");\n class_name = class_name.replace("DataB","");\n
row_index = parseInt(class_name);\n row_index = parseInt(class_name, 10);\n
//calculate current row offset relative to listbox\'s table.tbody\n //calculate current row offset relative to listbox\'s table.tbody\n
offset = parent_row.position("tbody").top - $("tr.listbox-data-line-0").position("tbody").top;\n offset = parent_row.position("tbody").top - $("tr.listbox-data-line-0").position("tbody").top;\n
popup.css("top", offset + "px");\n popup.css("top", offset + "px");\n
...@@ -142,7 +142,7 @@ function showPopik(dom_id, path){\n ...@@ -142,7 +142,7 @@ function showPopik(dom_id, path){\n
popup_html = $("#hidden_popup_listbox_"+dom_id).html();\n popup_html = $("#hidden_popup_listbox_"+dom_id).html();\n
popup.html(popup_html);\n popup.html(popup_html);\n
popup.show();\n popup.show();\n
return\n return;\n
}\n }\n
// we must request popup info with another request\n // we must request popup info with another request\n
popup_html = popup_local_dict[dom_id];\n popup_html = popup_local_dict[dom_id];\n
...@@ -170,7 +170,7 @@ function initialize_form(){\n ...@@ -170,7 +170,7 @@ function initialize_form(){\n
$(\'input\').keypress(function(e) {\n $(\'input\').keypress(function(e) {\n
if(e.which == 10 || e.which == 13) {$("#input-save-edit").click();}\n if(e.which == 10 || e.which == 13) {$("#input-save-edit").click();}\n
});\n });\n
})\n });\n
}\n }\n
}\n }\n
\n \n
...@@ -224,10 +224,10 @@ function initialize_form(){\n ...@@ -224,10 +224,10 @@ function initialize_form(){\n
// if(pdf_preview_navigation.length){\n // if(pdf_preview_navigation.length){\n
// \n // \n
// // XXX: set hooks\n // // XXX: set hooks\n
// $("div.pdf-preview-navigation a img.first").parent("a").click(loadThumbnail);\n // // $("div.pdf-preview-navigation a img.first").parent("a").click(loadThumbnail);\n
// $("div.pdf-preview-navigation a img.previous").parent("a").click(loadThumbnail);\n // // $("div.pdf-preview-navigation a img.previous").parent("a").click(loadThumbnail);\n
// $("div.pdf-preview-navigation a img.next").parent("a").click(loadThumbnail);\n // // $("div.pdf-preview-navigation a img.next").parent("a").click(loadThumbnail);\n
// $("div.pdf-preview-navigation a img.last").parent("a").click(loadThumbnail); \n // // $("div.pdf-preview-navigation a img.last").parent("a").click(loadThumbnail); \n
// \n // \n
// }\n // }\n
// }\n // }\n
...@@ -248,19 +248,19 @@ function highlight_search_word(){\n ...@@ -248,19 +248,19 @@ function highlight_search_word(){\n
/*\n /*\n
Use referer to get search text (if coming from GET search page) and highlight found words.\n Use referer to get search text (if coming from GET search page) and highlight found words.\n
*/\n */\n
query_array = queryStringToArray(document.referrer)\n query_array = queryStringToArray(document.referrer);\n
search_text = query_array["search_text"]\n search_text = query_array["search_text"];\n
if (search_text!=undefined){\n if (search_text!=undefined){\n
document_body = $("#main_content div.document div.page")\n document_body = $("#main_content div.document div.page");\n
headline = $("#main_content div.document span.headline")\n headline = $("#main_content div.document span.headline");\n
title = $("#wrapper_headline div.header_title")\n title = $("#wrapper_headline div.header_title");\n
// multiple words\n // multiple words\n
search_word_list = search_text.split("%20")\n search_word_list = search_text.split("%20");\n
for(var i=0; i<search_word_list.length; i++) {\n for(var i=0; i<search_word_list.length; i++) {\n
if (search_word_list[i] != \'\') {\n if (search_word_list[i] !== \'\') {\n
document_body.highlight(search_word_list[i], "highlight")\n document_body.highlight(search_word_list[i], "highlight");\n
headline.highlight(search_word_list[i], "highlight")\n headline.highlight(search_word_list[i], "highlight");\n
title.highlight(search_word_list[i], "highlight")\n title.highlight(search_word_list[i], "highlight");\n
}\n }\n
\n \n
}\n }\n
...@@ -279,7 +279,7 @@ $(document).ready(initialize_form);\n ...@@ -279,7 +279,7 @@ $(document).ready(initialize_form);\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>8419</int> </value> <value> <int>8444</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
1875 1876
\ No newline at end of file \ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts07964628.69</string> </value> <value> <string>ts67855922.32</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -61,17 +61,17 @@ function createCustomKnowledgePadOnServer(){\n ...@@ -61,17 +61,17 @@ function createCustomKnowledgePadOnServer(){\n
\n \n
function showCreateDefaultKnowledgePadWarningMessage(){\n function showCreateDefaultKnowledgePadWarningMessage(){\n
user_choice = confirm("In order to complete operation you must have your own tab on server instead of the default one which you are currently using and which you can not change.Is it OK to create new one for you now?");\n user_choice = confirm("In order to complete operation you must have your own tab on server instead of the default one which you are currently using and which you can not change.Is it OK to create new one for you now?");\n
if (user_choice==true){\n if (user_choice===true){\n
createCustomKnowledgePadOnServer();}\n createCustomKnowledgePadOnServer();}\n
}\n }\n
\n \n
function createCookie(name, value, days, path) {\n function createCookie(name, value, days, path) {\n
var expires = "";\n
if (days){\n if (days){\n
var date = new Date();\n var date = new Date();\n
date.setTime(date.getTime()+(days*24*60*60*1000));\n date.setTime(date.getTime()+(days*24*60*60*1000));\n
var expires = "; expires="+date.toGMTString();}\n expires = "; expires="+date.toGMTString();}\n
else var expires = "";\n if (!path){path=\'/\';}\n
if (!path){var path=\'/\';}\n
document.cookie = name+"="+value+expires+"; path="+path;\n document.cookie = name+"="+value+expires+"; path="+path;\n
}\n }\n
\n \n
...@@ -96,7 +96,7 @@ function updater(url, box_relative_url, dom_id, \n ...@@ -96,7 +96,7 @@ function updater(url, box_relative_url, dom_id, \n
request_params["form_id"] = value;}\n request_params["form_id"] = value;}\n
else if(is_list){\n else if(is_list){\n
if(typeof(request_params[name]) == "undefined"){\n if(typeof(request_params[name]) == "undefined"){\n
request_params[name] = new Array()}\n request_params[name] = new Array();}\n
request_params[name].push(value);}\n request_params[name].push(value);}\n
else{\n else{\n
// not list input\n // not list input\n
...@@ -162,9 +162,9 @@ function checkForActivitiesOnServer(timeout, return_url, mode, default_pad_group ...@@ -162,9 +162,9 @@ function checkForActivitiesOnServer(timeout, return_url, mode, default_pad_group
default_pad_group: default_pad_group},\n default_pad_group: default_pad_group},\n
dataType: "json",\n dataType: "json",\n
success: function (data){if(data.result=="False"){window.location=return_url;}}\n success: function (data){if(data.result=="False"){window.location=return_url;}}\n
})},\n });},\n
timeout);\n timeout);\n
};\n }\n
\n \n
function createDefaultPadOnServer(timeout, default_pad_group, return_url, mode){\n function createDefaultPadOnServer(timeout, default_pad_group, return_url, mode){\n
/* create default tab on server and then check if \n /* create default tab on server and then check if \n
...@@ -193,12 +193,12 @@ function submitSynchronousGadgetPreferenceForm(\n ...@@ -193,12 +193,12 @@ function submitSynchronousGadgetPreferenceForm(\n
/* this will add respective gadget knowledge box relative url and\n /* this will add respective gadget knowledge box relative url and\n
gadget ERP5 preference form field_prefix (so multiple gadgets can \n gadget ERP5 preference form field_prefix (so multiple gadgets can \n
safely coexist in one HTML page with one HTML form */\n safely coexist in one HTML page with one HTML form */\n
redirect_url = window.location.protocol + "//" + window.location.host + window.location.pathname\n redirect_url = window.location.protocol + "//" + window.location.host + window.location.pathname;\n
$("form").append(\'<input type="hidden" name="box_relative_url" value="\' +box_relative_url + \'">\')\n $("form").append(\'<input type="hidden" name="box_relative_url" value="\' +box_relative_url + \'">\');\n
$("form").append(\'<input type="hidden" name="form_fields_main_prefix" value="\' +form_fields_main_prefix + \'">\')\n $("form").append(\'<input type="hidden" name="form_fields_main_prefix" value="\' +form_fields_main_prefix + \'">\');\n
$("form").append(\'<input type="hidden" name="gadget_redirect_url" value="\' +redirect_url + \'">\')\n $("form").append(\'<input type="hidden" name="gadget_redirect_url" value="\' +redirect_url + \'">\');\n
$("form").append(\'<input type="hidden" name="form_id" value="\' +edit_form_id + \'">\') \n $("form").append(\'<input type="hidden" name="form_id" value="\' +edit_form_id + \'">\') ;\n
clickSaveButton(knowledge_box_edit_script_id)\n clickSaveButton(knowledge_box_edit_script_id);\n
}\n }\n
\n \n
function submitAsynchronousGadgetPreferenceForm(\n function submitAsynchronousGadgetPreferenceForm(\n
...@@ -219,7 +219,7 @@ function submitAsynchronousGadgetPreferenceForm(\n ...@@ -219,7 +219,7 @@ function submitAsynchronousGadgetPreferenceForm(\n
type = element.attr("type");\n type = element.attr("type");\n
name = element.attr("name");\n name = element.attr("name");\n
is_checked = element.attr("checked");\n is_checked = element.attr("checked");\n
value = element.val()\n value = element.val();\n
if (type == "checkbox"){\n if (type == "checkbox"){\n
if (is_checked){request_str+=name + ":boolean=True&";}\n if (is_checked){request_str+=name + ":boolean=True&";}\n
else {request_str+=name + ":boolean=False&";}}\n else {request_str+=name + ":boolean=False&";}}\n
...@@ -233,7 +233,7 @@ function submitAsynchronousGadgetPreferenceForm(\n ...@@ -233,7 +233,7 @@ function submitAsynchronousGadgetPreferenceForm(\n
element = $(this);\n element = $(this);\n
name = element.attr("name");\n name = element.attr("name");\n
is_multiple = element.attr("multiple");\n is_multiple = element.attr("multiple");\n
value = element.val() \n value = element.val();\n
if (is_multiple){\n if (is_multiple){\n
//support multifield selects in gadget edit form\n //support multifield selects in gadget edit form\n
element.children("option").each(\n element.children("option").each(\n
...@@ -249,14 +249,14 @@ function submitAsynchronousGadgetPreferenceForm(\n ...@@ -249,14 +249,14 @@ function submitAsynchronousGadgetPreferenceForm(\n
success: function (data){\n success: function (data){\n
if (data.validation_status){\n if (data.validation_status){\n
// server side validation passed\n // server side validation passed\n
updater(view_form_url, box_relative_url, visual_block_dom_id)\n updater(view_form_url, box_relative_url, visual_block_dom_id);\n
$("#" + form_dom_id).toggle()\n $("#" + form_dom_id).toggle();\n
// clean error messages\n // clean error messages\n
$("#" + form_dom_id + " span.error").remove()\n $("#" + form_dom_id + " span.error").remove();\n
}\n }\n
else{\n else{\n
// server side validation failed show error message\n // server side validation failed show error message\n
$("#" + form_dom_id + " div.edit-form-content").html(data.content)\n $("#" + form_dom_id + " div.edit-form-content").html(data.content);\n
}\n }\n
} });\n } });\n
}\n }\n
...@@ -269,7 +269,7 @@ function updateServerBoxColumnLayout(event, ui){\n ...@@ -269,7 +269,7 @@ function updateServerBoxColumnLayout(event, ui){\n
columns.sort(function(a, b) {\n columns.sort(function(a, b) {\n
var compA = $(a).attr("id").toUpperCase();\n var compA = $(a).attr("id").toUpperCase();\n
var compB = $(b).attr("id").toUpperCase();\n var compB = $(b).attr("id").toUpperCase();\n
return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;})\n return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;});\n
\n \n
columns.each(function(column_index, column){\n columns.each(function(column_index, column){\n
column = $(this);\n column = $(this);\n
...@@ -277,7 +277,7 @@ function updateServerBoxColumnLayout(event, ui){\n ...@@ -277,7 +277,7 @@ function updateServerBoxColumnLayout(event, ui){\n
column_items = column.find("div.block");\n column_items = column.find("div.block");\n
column_items.each(function(box_index, box){\n column_items.each(function(box_index, box){\n
items_arr[box_index] = column_items[box_index].id;}); \n items_arr[box_index] = column_items[box_index].id;}); \n
columns_arr[column_index] = items_arr.join(\'|\') });\n columns_arr[column_index] = items_arr.join(\'|\');});\n
\n \n
var layout = columns_arr.join("##");\n var layout = columns_arr.join("##");\n
// .. and send it to server only if it\'s different\n // .. and send it to server only if it\'s different\n
...@@ -308,14 +308,14 @@ function showRenamePadPopup(knowledge_pad_relative_url, knowledge_pad_title_dom_ ...@@ -308,14 +308,14 @@ function showRenamePadPopup(knowledge_pad_relative_url, knowledge_pad_title_dom_
function loadPadFromServer(pad_relative_url, selected_pad_dom_id, mode){\n function loadPadFromServer(pad_relative_url, selected_pad_dom_id, mode){\n
/* Load Pad from server */\n /* Load Pad from server */\n
// show some animation\n // show some animation\n
$("#loading-wrapper").first().show()\n $("#loading-wrapper").first().show();\n
$.ajax({url: knowledge_pad_as_json_script_id, \n $.ajax({url: knowledge_pad_as_json_script_id, \n
data: {pad_relative_url: pad_relative_url,\n data: {pad_relative_url: pad_relative_url,\n
mode: mode},\n mode: mode},\n
dataType: "json",\n dataType: "json",\n
success: handleServerSuccess});\n success: handleServerSuccess});\n
// set old pad to not selected\n // set old pad to not selected\n
old_selected_pad = $("#tabs ul").children("li.tab_selected").first()\n old_selected_pad = $("#tabs ul").children("li.tab_selected").first();\n
old_selected_pad.removeClass("tab_selected");\n old_selected_pad.removeClass("tab_selected");\n
old_selected_pad.addClass("tab");\n old_selected_pad.addClass("tab");\n
\n \n
...@@ -327,29 +327,29 @@ function loadPadFromServer(pad_relative_url, selected_pad_dom_id, mode){\n ...@@ -327,29 +327,29 @@ function loadPadFromServer(pad_relative_url, selected_pad_dom_id, mode){\n
new_selected_pad.addClass("tab_selected");\n new_selected_pad.addClass("tab_selected");\n
\n \n
// enable "settings" for this pad and hide instant switch\n // enable "settings" for this pad and hide instant switch\n
pad_actions = new_selected_pad.children("div.pad-actions").first()\n pad_actions = new_selected_pad.children("div.pad-actions").first();\n
pad_actions.show()\n pad_actions.show();\n
\n \n
// set new active pad\n // set new active pad\n
active_knowledge_pad_relative_url = pad_relative_url;\n active_knowledge_pad_relative_url = pad_relative_url;\n
\n \n
// update "Add Gadget" link\n // update "Add Gadget" link\n
current_url = $("#add-gadgets").attr("href");\n current_url = $("#add-gadgets").attr("href");\n
new_url = current_url.substring(0, current_url.indexOf("active_pad_relative_url=")+24)+active_knowledge_pad_relative_url\n new_url = current_url.substring(0, current_url.indexOf("active_pad_relative_url=")+24)+active_knowledge_pad_relative_url;\n
$("#add-gadgets").attr("href", new_url);\n $("#add-gadgets").attr("href", new_url);\n
\n \n
//function metadataFetchFailed(meta){}\n //function metadataFetchFailed(meta){}\n
function handleServerSuccess(data){\n function handleServerSuccess(data){\n
body = data.body\n body = data.body;\n
javascript = data.javascript\n javascript = data.javascript;\n
body_element = $("#pad-body-wrapper")[0]\n body_element = $("#pad-body-wrapper")[0];\n
body_element.innerHTML = body;\n body_element.innerHTML = body;\n
// init new Pad\n // init new Pad\n
initialize();\n initialize();\n
// execute JS code provided by server\n // execute JS code provided by server\n
eval(javascript);\n eval(javascript);\n
// give some timeout as we can be sometimes two fast loading a tab\n // give some timeout as we can be sometimes two fast loading a tab\n
setTimeout("$(\'#loading-wrapper\').first().hide();", 250 );};\n setTimeout("$(\'#loading-wrapper\').first().hide();", 250 );}\n
}\n }\n
\n \n
function addPadOnServerOnEnter(event, mode, cancel_url){\n function addPadOnServerOnEnter(event, mode, cancel_url){\n
...@@ -364,7 +364,7 @@ function addPadOnServer(mode,\n ...@@ -364,7 +364,7 @@ function addPadOnServer(mode,\n
/* add pad on server */\n /* add pad on server */\n
pad_title_value = $("#new_pad_title").first().val();\n pad_title_value = $("#new_pad_title").first().val();\n
window.location = add_new_knowledge_pad_script_id + "?redirect_url=" + cancel_url + "&mode=" + mode + "&pad_title=" + pad_title_value;\n window.location = add_new_knowledge_pad_script_id + "?redirect_url=" + cancel_url + "&mode=" + mode + "&pad_title=" + pad_title_value;\n
};\n }\n
\n \n
function removeKnowledgePadFromServer(knowledge_pad_relative_url, mode){\n function removeKnowledgePadFromServer(knowledge_pad_relative_url, mode){\n
/* remove pad from server*/\n /* remove pad from server*/\n
...@@ -373,7 +373,7 @@ function removeKnowledgePadFromServer(knowledge_pad_relative_url, mode){\n ...@@ -373,7 +373,7 @@ function removeKnowledgePadFromServer(knowledge_pad_relative_url, mode){\n
else{\n else{\n
var user_choice = true;\n var user_choice = true;\n
user_choice = confirm("Are you sure you want to remove this pad from your home?");\n user_choice = confirm("Are you sure you want to remove this pad from your home?");\n
if (user_choice==true){\n if (user_choice===true){\n
location.href=knowledge_pad_delete_script_id + "?knowledge_pad_relative_url=" + knowledge_pad_relative_url+"&mode="+mode;} }\n location.href=knowledge_pad_delete_script_id + "?knowledge_pad_relative_url=" + knowledge_pad_relative_url+"&mode="+mode;} }\n
}\n }\n
\n \n
...@@ -389,8 +389,8 @@ function renameKnowledgePadToServer(){\n ...@@ -389,8 +389,8 @@ function renameKnowledgePadToServer(){\n
showCreateDefaultKnowledgePadWarningMessage();}\n showCreateDefaultKnowledgePadWarningMessage();}\n
else{\n else{\n
// rename it locally and update server asynchonously\n // rename it locally and update server asynchonously\n
title_element = $("#"+active_knowledge_pad_title_dom_id).first()\n title_element = $("#"+active_knowledge_pad_title_dom_id).first();\n
input_element = $("#new_knowledge_pad_title")\n input_element = $("#new_knowledge_pad_title");\n
var knowledge_pad_title = input_element.val();\n var knowledge_pad_title = input_element.val();\n
title_element.html(knowledge_pad_title);\n title_element.html(knowledge_pad_title);\n
$.ajax({url: knowledge_pad_rename_script_id, \n $.ajax({url: knowledge_pad_rename_script_id, \n
...@@ -402,7 +402,7 @@ function renameKnowledgePadToServer(){\n ...@@ -402,7 +402,7 @@ function renameKnowledgePadToServer(){\n
\n \n
function initialize(){\n function initialize(){\n
// initialize sortable columns\n // initialize sortable columns\n
if (is_knowledge_template_used==0){\n if (is_knowledge_template_used===0){\n
// allow drag and drop only if we are dealing with a pad we can modify\n // allow drag and drop only if we are dealing with a pad we can modify\n
sortable_list = $("div.portal-column");\n sortable_list = $("div.portal-column");\n
function makeSortables(index){\n function makeSortables(index){\n
...@@ -417,7 +417,7 @@ function initialize(){\n ...@@ -417,7 +417,7 @@ function initialize(){\n
containment: "document",\n containment: "document",\n
delay: 100,\n delay: 100,\n
stop: updateServerBoxColumnLayout});} }\n stop: updateServerBoxColumnLayout});} }\n
if (sortable_list!=null) sortable_list.each(makeSortables);\n if (sortable_list!==null) sortable_list.each(makeSortables);\n
}\n }\n
\n \n
// enable show/hide tabs\n // enable show/hide tabs\n
...@@ -440,7 +440,7 @@ function initialize(){\n ...@@ -440,7 +440,7 @@ function initialize(){\n
\n \n
function bindGadgetHandlers(index, box){\n function bindGadgetHandlers(index, box){\n
/* Bind all gadgets handlers */\n /* Bind all gadgets handlers */\n
box = $(this)\n box = $(this);\n
var edit = box.find("a.block-edit-form").first();\n var edit = box.find("a.block-edit-form").first();\n
var edit_form = box.find("div.edit-form").first();\n var edit_form = box.find("div.edit-form").first();\n
var remove = box.find("a.block-remove").first(); \n var remove = box.find("a.block-remove").first(); \n
...@@ -452,7 +452,7 @@ function initialize(){\n ...@@ -452,7 +452,7 @@ function initialize(){\n
if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n
else{\n else{\n
minimize_wrapper.toggle();\n minimize_wrapper.toggle();\n
box_id = box.attr("id")\n box_id = box.attr("id");\n
js_dom_id = box_id + "_content";\n js_dom_id = box_id + "_content";\n
js_code = invisible_gadgets[js_dom_id];\n js_code = invisible_gadgets[js_dom_id];\n
if (js_code!=undefined){\n if (js_code!=undefined){\n
...@@ -468,7 +468,7 @@ function initialize(){\n ...@@ -468,7 +468,7 @@ function initialize(){\n
edit.unbind("click");\n edit.unbind("click");\n
edit.bind("click", function (){\n edit.bind("click", function (){\n
if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n
else{edit_form.toggle()}});}\n else{edit_form.toggle();}});}\n
\n \n
if(remove){\n if(remove){\n
remove.unbind("click");\n remove.unbind("click");\n
...@@ -476,7 +476,7 @@ function initialize(){\n ...@@ -476,7 +476,7 @@ function initialize(){\n
if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n if (is_knowledge_template_used){showCreateDefaultKnowledgePadWarningMessage();}\n
else{\n else{\n
user_choice = confirm("Are you sure you want to remove this gadget from your personalized page?");\n user_choice = confirm("Are you sure you want to remove this gadget from your personalized page?");\n
if (user_choice==true){\n if (user_choice===true){\n
box_id = box.attr("id");\n box_id = box.attr("id");\n
box.toggle();\n box.toggle();\n
$.ajax({url: knowledge_pad_delete_box_script_id, \n $.ajax({url: knowledge_pad_delete_box_script_id, \n
...@@ -491,7 +491,7 @@ function initialize(){\n ...@@ -491,7 +491,7 @@ function initialize(){\n
\n \n
// for each box (gadget) add respective event handlers\n // for each box (gadget) add respective event handlers\n
gadget_list = $("div.block");\n gadget_list = $("div.block");\n
if (gadget_list!=null){\n if (gadget_list!==null){\n
gadget_list.each(bindGadgetHandlers);\n gadget_list.each(bindGadgetHandlers);\n
// when dom is loaded we need to remove all gadget\'s scripts otherwise currently when a gadget is moved\n // when dom is loaded we need to remove all gadget\'s scripts otherwise currently when a gadget is moved\n
// its HTML is getting executed again, thus making unecessary calls to server, etc ...\n // its HTML is getting executed again, thus making unecessary calls to server, etc ...\n
...@@ -501,8 +501,7 @@ function initialize(){\n ...@@ -501,8 +501,7 @@ function initialize(){\n
}\n }\n
\n \n
// call function after load of document\n // call function after load of document\n
$(document).ready(initialize);\n $(document).ready(initialize);
]]></string> </value> ]]></string> </value>
</item> </item>
...@@ -512,7 +511,7 @@ $(document).ready(initialize);\n ...@@ -512,7 +511,7 @@ $(document).ready(initialize);\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>19261</int> </value> <value> <int>19272</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
761 762
\ No newline at end of file \ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts06480713.25</string> </value> <value> <string>ts68194304.12</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -56,7 +56,7 @@ function setCreationMode (sel) {\n ...@@ -56,7 +56,7 @@ function setCreationMode (sel) {\n
// a portal type is given, so create a new document\n // a portal type is given, so create a new document\n
var portal_type = sel.options[sel.selectedIndex].value;\n var portal_type = sel.options[sel.selectedIndex].value;\n
if (portal_type != \'None\') {\n if (portal_type != \'None\') {\n
action = \'new\'\n action = \'new\';\n
action_name = \'Create New &amp; Edit\';\n action_name = \'Create New &amp; Edit\';\n
icon = \'admin_toolbox_new_document.png\';\n icon = \'admin_toolbox_new_document.png\';\n
name = \'Base_newContent:method\';\n name = \'Base_newContent:method\';\n
...@@ -93,8 +93,8 @@ function initialize_toolbar(){\n ...@@ -93,8 +93,8 @@ function initialize_toolbar(){\n
menu = $(this);\n menu = $(this);\n
var menu_title = menu.children("h3.menu_title").first();\n var menu_title = menu.children("h3.menu_title").first();\n
var item = menu.children("div.menu").first();\n var item = menu.children("div.menu").first();\n
menu_title.bind("click", function (){display_menu(item)} );\n menu_title.bind("click", function (){display_menu(item);} );\n
})}\n });}\n
\n \n
function display_menu(clicked_item){\n function display_menu(clicked_item){\n
/* when called funtion will display current menu and hide rest */\n /* when called funtion will display current menu and hide rest */\n
...@@ -104,7 +104,7 @@ function display_menu(clicked_item){\n ...@@ -104,7 +104,7 @@ function display_menu(clicked_item){\n
menu = $(this);\n menu = $(this);\n
var item = menu.children("div.menu").first();\n var item = menu.children("div.menu").first();\n
if (item.parent().attr("id") != clicked_item.parent().attr("id")) {item.hide();}\n if (item.parent().attr("id") != clicked_item.parent().attr("id")) {item.hide();}\n
})};\n });}\n
\n \n
$(document).ready(initialize_toolbar);\n $(document).ready(initialize_toolbar);\n
...@@ -117,7 +117,7 @@ $(document).ready(initialize_toolbar);\n ...@@ -117,7 +117,7 @@ $(document).ready(initialize_toolbar);\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>2925</int> </value> <value> <int>2928</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
1099 1100
\ No newline at end of file \ No newline at end of file
...@@ -40,21 +40,22 @@ $.fn.outerHTML = function() {\n ...@@ -40,21 +40,22 @@ $.fn.outerHTML = function() {\n
$t.unwrap();\n $t.unwrap();\n
return content;\n return content;\n
}\n }\n
}\n };\n
\n \n
function getCurrentObjectUrl(){\n function getCurrentObjectUrl(){\n
return window.location.href.split("?")[0];\n return window.location.href.split("?")[0];\n
}\n }\n
\n \n
function toogleLoading(is_toogle, _message) {\n function toogleLoading(is_toogle, _message) {\n
var loading_wrapper;\n
if (is_toogle) {\n if (is_toogle) {\n
var loading_wrapper = $("#loading-wrapper").first();\n loading_wrapper = $("#loading-wrapper").first();\n
toogleLoading.prototype.old_loading_message = loading_wrapper.find(\'p\')[0].textContent;\n toogleLoading.prototype.old_loading_message = loading_wrapper.find(\'p\')[0].textContent;\n
loading_wrapper.find(\'p\')[0].textContent = _message;\n loading_wrapper.find(\'p\')[0].textContent = _message;\n
loading_wrapper.show();\n loading_wrapper.show();\n
}\n }\n
else {\n else {\n
var loading_wrapper = $("#loading-wrapper").first();\n loading_wrapper = $("#loading-wrapper").first();\n
loading_wrapper.hide();\n loading_wrapper.hide();\n
loading_wrapper.find(\'p\')[0].textContent = toogleLoading.prototype.old_loading_message;\n loading_wrapper.find(\'p\')[0].textContent = toogleLoading.prototype.old_loading_message;\n
}\n }\n
...@@ -66,7 +67,7 @@ function changeLanguage(language){\n ...@@ -66,7 +67,7 @@ function changeLanguage(language){\n
async: false,\n async: false,\n
success: function(){\n success: function(){\n
window.location.reload();\n window.location.reload();\n
},\n }\n
});\n });\n
}\n }\n
\n \n
...@@ -74,7 +75,7 @@ function getPortalTypeFromContext(){\n ...@@ -74,7 +75,7 @@ function getPortalTypeFromContext(){\n
var response = $.ajax({\n var response = $.ajax({\n
url: "getPortalType",\n url: "getPortalType",\n
method: "GET",\n method: "GET",\n
async: false,\n async: false\n
}).responseText;\n }).responseText;\n
return response;\n return response;\n
}\n }\n
...@@ -95,7 +96,7 @@ function getUrlParameterList(){\n ...@@ -95,7 +96,7 @@ function getUrlParameterList(){\n
function getObjectPropertyValue(method_name){\n function getObjectPropertyValue(method_name){\n
return $.ajax({\n return $.ajax({\n
url: method_name,\n url: method_name,\n
async: false,\n async: false\n
}).responseText;\n }).responseText;\n
}\n }\n
\n \n
...@@ -146,7 +147,7 @@ function setObjectPropertyValue(method_name, value, parameter){\n ...@@ -146,7 +147,7 @@ function setObjectPropertyValue(method_name, value, parameter){\n
type: "POST",\n type: "POST",\n
url: method_name,\n url: method_name,\n
data: parameter + "=" + value,\n data: parameter + "=" + value,\n
async: false,\n async: false\n
});\n });\n
return true;\n return true;\n
}\n }\n
...@@ -160,7 +161,7 @@ function changeCheckBoxValue(value){\n ...@@ -160,7 +161,7 @@ function changeCheckBoxValue(value){\n
function waitCreateUNGUser(paramStr){\n function waitCreateUNGUser(paramStr){\n
$.get("ERP5Site_checkIfUserExist?" + paramStr, {}, function(data, textStatus, xhr){\n $.get("ERP5Site_checkIfUserExist?" + paramStr, {}, function(data, textStatus, xhr){\n
data = jQuery.parseJSON(data);\n data = jQuery.parseJSON(data);\n
if (data.response == true){\n if (data.response === true){\n
clearTimeout();\n clearTimeout();\n
window.location.reload();\n window.location.reload();\n
}\n }\n
...@@ -214,7 +215,7 @@ function displayLoginForm(){\n ...@@ -214,7 +215,7 @@ function displayLoginForm(){\n
return false;\n return false;\n
}\n }\n
$.getJSON(\'ERPSite_createUNGUser?\' + $("form#create-user").serialize(), function(response){\n $.getJSON(\'ERPSite_createUNGUser?\' + $("form#create-user").serialize(), function(response){\n
if (response == null){\n if (response === null){\n
displayFormMessage(formHash.login_name + " is not available, please try another...", 3500);\n displayFormMessage(formHash.login_name + " is not available, please try another...", 3500);\n
return false;\n return false;\n
}\n }\n
...@@ -223,7 +224,9 @@ function displayLoginForm(){\n ...@@ -223,7 +224,9 @@ function displayLoginForm(){\n
var paramStr = "reference=" + formHash.login_name;\n var paramStr = "reference=" + formHash.login_name;\n
setTimeout(waitCreateUNGUser(paramStr), 2000);\n setTimeout(waitCreateUNGUser(paramStr), 2000);\n
}\n }\n
return true;\n
});\n });\n
return true;\n
});\n });\n
});\n });\n
});\n });\n
...@@ -231,7 +234,7 @@ function displayLoginForm(){\n ...@@ -231,7 +234,7 @@ function displayLoginForm(){\n
\n \n
function reloadLoginPage(event){\n function reloadLoginPage(event){\n
event.preventDefault();\n event.preventDefault();\n
if ($("div#main-content").html() == null){\n if ($("div#main-content").html() === null){\n
displayLoginForm();\n displayLoginForm();\n
}\n }\n
if ($("table#create-new-user").css("display") != "none"){\n if ($("table#create-new-user").css("display") != "none"){\n
...@@ -243,41 +246,41 @@ function reloadLoginPage(event){\n ...@@ -243,41 +246,41 @@ function reloadLoginPage(event){\n
\n \n
function displayDocumentTitle(title){\n function displayDocumentTitle(title){\n
var document_title = title;\n var document_title = title;\n
document_title == null ? document_title = getObjectPropertyValue("getTitle"): null;\n document_title === null ? document_title = getObjectPropertyValue("getTitle"): null;\n
if (document_title.length > 30){\n if (document_title.length > 30){\n
$("a[name=\'document_title\']").html(document_title.substring(0,30) + "...");\n $("a[name=\'document_title\']").html(document_title.substring(0,30) + "...");\n
}\n }\n
else{\n else{\n
$("a[name=\'document_title\']").html(document_title);\n $("a[name=\'document_title\']").html(document_title);\n
};\n }\n
}\n }\n
\n \n
// XXX: refactor to upgrade performance of \'updateListboxSelection\' function\n // XXX: refactor to upgrade performance of \'updateListboxSelection\' function\n
function updateListboxSelection() {\n function updateListboxSelection() {\n
var data_params = $(\'form#main_form\').serializeArray();\n var data_params = $(\'form#main_form\').serializeArray();\n
$(\'input[name="knowledge_pad_module_ung_knowledge_pad_ung_docs_listbox_content_listbox_uid:list"]\')\n $(\'input[name="knowledge_pad_module_ung_knowledge_pad_ung_docs_listbox_content_listbox_uid:list"]\').each(function() {\n
.each(function() {\n data_params.push({\n
data_params.push({\'name\': \'listbox_uid:list\',\n \'name\': \'listbox_uid:list\',\n
\'value\': this.value,}\n \'value\': this.value\n
);\n });\n
})\n });\n
$.ajax({\n $.ajax({\n
async: false,\n async: false,\n
type: \'POST\',\n type: \'POST\',\n
url: \'Base_updateListboxSelection\',\n url: \'Base_updateListboxSelection\',\n
data: $.param(data_params),\n data: $.param(data_params)\n
});\n });\n
}\n }\n
\n \n
$().ready(function(){\n $().ready(function(){\n
$("p.clear").remove();\n $("p.clear").remove();\n
if ($("a#login").html() != null){\n if ($("a#login").html() !== null){\n
displayLoginForm();\n displayLoginForm();\n
return 0;\n return 0;\n
}\n }\n
if ($("div.gadget-column").length == 0) {\n if ($("div.gadget-column").length === 0) {\n
parameterList = getUrlParameterList();\n parameterList = getUrlParameterList();\n
if (parameterList.hasOwnProperty("upload_document") == true){\n if (parameterList.hasOwnProperty("upload_document") === true){\n
$("a[name=\'document_title\'], a[name=\'document_state\'], div.header-right, div.content").hide();\n $("a[name=\'document_title\'], a[name=\'document_state\'], div.header-right, div.content").hide();\n
$("a#loading_message").show();\n $("a#loading_message").show();\n
setTimeout(checkConversion(), 1000);\n setTimeout(checkConversion(), 1000);\n
...@@ -303,6 +306,7 @@ $().ready(function(){\n ...@@ -303,6 +306,7 @@ $().ready(function(){\n
});\n });\n
});\n });\n
break;\n break;\n
default: break;\n
}\n }\n
displayDocumentTitle(null);\n displayDocumentTitle(null);\n
}\n }\n
...@@ -313,10 +317,10 @@ $().ready(function(){\n ...@@ -313,10 +317,10 @@ $().ready(function(){\n
});\n });\n
$("tbody tr td.listbox-table-domain-tree-cell a").each(function(){\n $("tbody tr td.listbox-table-domain-tree-cell a").each(function(){\n
if ($(this).text().length == 16){\n if ($(this).text().length == 16){\n
$(this).css("padding-right", "82px")\n $(this).css("padding-right", "82px");\n
}\n }\n
if ($(this).text().length > 16){\n if ($(this).text().length > 16){\n
$(this).css("padding-right", "24px")\n $(this).css("padding-right", "24px");\n
}\n }\n
});\n });\n
\n \n
...@@ -330,7 +334,7 @@ $().ready(function(){\n ...@@ -330,7 +334,7 @@ $().ready(function(){\n
data: "action_name=" + action_name,\n data: "action_name=" + action_name,\n
success: function(){\n success: function(){\n
window.location.reload();\n window.location.reload();\n
},\n }\n
});\n });\n
});\n });\n
if ($("a[name=\'document_state\']").text() == "Draft") {\n if ($("a[name=\'document_state\']").text() == "Draft") {\n
...@@ -340,13 +344,13 @@ $().ready(function(){\n ...@@ -340,13 +344,13 @@ $().ready(function(){\n
event.preventDefault();\n event.preventDefault();\n
$.ajax({\n $.ajax({\n
url: \'WebPage_shareDocument\',\n url: \'WebPage_shareDocument\',\n
async: false,\n async: false\n
});\n });\n
location.reload();\n location.reload();\n
});\n });\n
};\n }\n
$("div.action_menu li ul").css("height", $("div.action_menu li ul li").length * 25.3 + "px");\n $("div.action_menu li ul").css("height", $("div.action_menu li ul li").length * 25.3 + "px");\n
};\n }\n
\n \n
$("#edit_document").dialog({\n $("#edit_document").dialog({\n
autoOpen: false,\n autoOpen: false,\n
...@@ -375,14 +379,14 @@ $().ready(function(){\n ...@@ -375,14 +379,14 @@ $().ready(function(){\n
},\n },\n
Cancel: function() {\n Cancel: function() {\n
$(this).dialog("close");\n $(this).dialog("close");\n
},\n }\n
}\n }\n
});\n });\n
$("#upload_document").dialog({\n $("#upload_document").dialog({\n
autoOpen: false,\n autoOpen: false,\n
height: 116,\n height: 116,\n
width: 346,\n width: 346,\n
modal: true,\n modal: true\n
});\n });\n
$("div.gadget-listbox").dialog({\n $("div.gadget-listbox").dialog({\n
autoOpen: false,\n autoOpen: false,\n
...@@ -395,11 +399,11 @@ $().ready(function(){\n ...@@ -395,11 +399,11 @@ $().ready(function(){\n
$("table#gadget-table tbody tr td input").each(function(){\n $("table#gadget-table tbody tr td input").each(function(){\n
if (this.checked){\n if (this.checked){\n
gadgetIdList.push($(this).attr("id"));\n gadgetIdList.push($(this).attr("id"));\n
};\n }\n
});\n });\n
if (gadgetIdList.length == 0){\n if (gadgetIdList.length === 0){\n
$(this).dialog("close");\n $(this).dialog("close");\n
};\n }\n
var tabTitle = $("div#tabs ul li.tab_selected span").html();\n var tabTitle = $("div#tabs ul li.tab_selected span").html();\n
$.ajax({\n $.ajax({\n
type: "post",\n type: "post",\n
...@@ -409,7 +413,7 @@ $().ready(function(){\n ...@@ -409,7 +413,7 @@ $().ready(function(){\n
window.location.reload();\n window.location.reload();\n
}\n }\n
});\n });\n
},\n }\n
}\n }\n
});\n });\n
$("div#preference_dialog").dialog({\n $("div#preference_dialog").dialog({\n
...@@ -424,51 +428,44 @@ $().ready(function(){\n ...@@ -424,51 +428,44 @@ $().ready(function(){\n
$.ajax({\n $.ajax({\n
async: false,\n async: false,\n
url: ungPreferencePath + "/Base_edit",\n url: ungPreferencePath + "/Base_edit",\n
data: erp5PreferenceArgument + "&form_id=Preference_viewHtmlStyle",\n data: erp5PreferenceArgument + "&form_id=Preference_viewHtmlStyle"\n
});\n });\n
var ungPreferenceArgument = $("form#ung_preference").serialize();\n var ungPreferenceArgument = $("form#ung_preference").serialize();\n
$.ajax({\n $.ajax({\n
async: false,\n async: false,\n
url: ungPreferencePath + "/Base_edit",\n url: ungPreferencePath + "/Base_edit",\n
data: ungPreferenceArgument + "&form_id=UNGPreference_view",\n data: ungPreferenceArgument + "&form_id=UNGPreference_view"\n
});\n });\n
location.reload();\n location.reload();\n
},\n },\n
Cancel: function() {\n Cancel: function() {\n
$(this).dialog("close");\n $(this).dialog("close");\n
},\n }\n
}\n }\n
});\n });\n
$("p#more_properties")\n $("p#more_properties").click(function(){\n
.click(function(){\n
$("div#more_property").show();\n $("div#more_property").show();\n
$("p#hide_properties").show();\n $("p#hide_properties").show();\n
$("div#edit_document fieldset").animate({"height": "186px"}, "slow");\n $("div#edit_document fieldset").animate({"height": "186px"}, "slow");\n
$("div.ui-dialog").animate({"top": "50px"}, "slow")\n $("div.ui-dialog").animate({"top": "50px"}, "slow").animate({"height": "255px"}, "slow");\n
.animate({"height": "255px"}, "slow");\n
$("div#edit_document").animate({"height": "183px"}, "slow");\n $("div#edit_document").animate({"height": "183px"}, "slow");\n
$("div#edit_document fieldset input").css("margin", "0")\n $("div#edit_document fieldset input").css("margin", "0").css("width", "60%");\n
.css("width", "60%");\n $("div#edit_document fieldset label").css("float", "left").css("width", "35%");\n
$("div#edit_document fieldset label").css("float", "left")\n
.css("width", "35%");\n
$("div#more_property input").css("width", "47%");\n $("div#more_property input").css("width", "47%");\n
$("p#more_properties").hide();\n $("p#more_properties").hide();\n
});\n });\n
$("p#hide_properties")\n $("p#hide_properties").click(function(){\n
.click(function(){\n
$("div#more_property").hide();\n $("div#more_property").hide();\n
$("p#more_properties").show();\n $("p#more_properties").show();\n
$("p#hide_properties").hide();\n $("p#hide_properties").hide();\n
$("div#edit_document fieldset input").css("width", "95%")\n $("div#edit_document fieldset input").css("width", "95%").css("margin-top", "14px");\n
.css("margin-top", "14px");\n
$("div#edit_document fieldset").animate({"height": "69px"}, "slow");\n $("div#edit_document fieldset").animate({"height": "69px"}, "slow");\n
$("div.ui-dialog").animate({"height": "148px"}, "slow");\n $("div.ui-dialog").animate({"height": "148px"}, "slow");\n
$("div#edit_document").animate({"height": "78px"}, "slow");\n $("div#edit_document").animate({"height": "78px"}, "slow");\n
});\n });\n
$("a#settings")\n $("a#settings").click(function(event){\n
.click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
if ($("div#preference_dialog").html() == ""){\n if ($("div#preference_dialog").html() === ""){\n
$.ajax({\n $.ajax({\n
url: "Base_getPreferencePathList",\n url: "Base_getPreferencePathList",\n
async: false,\n async: false,\n
...@@ -503,8 +500,7 @@ $().ready(function(){\n ...@@ -503,8 +500,7 @@ $().ready(function(){\n
$("div#preference_dialog").dialog("open");\n $("div#preference_dialog").dialog("open");\n
});\n });\n
\n \n
$("button#change_state")\n $("button#change_state").click(function(event){\n
.click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
$("div#change_state_dialog").html(\'\');\n $("div#change_state_dialog").html(\'\');\n
// update portal selections\n // update portal selections\n
...@@ -514,10 +510,10 @@ $().ready(function(){\n ...@@ -514,10 +510,10 @@ $().ready(function(){\n
url: \'erp5/Folder_viewWorkflowActionDialog\',\n url: \'erp5/Folder_viewWorkflowActionDialog\',\n
data: {selection_name: $(\'input[name=list_selection_name]\').val(),\n data: {selection_name: $(\'input[name=list_selection_name]\').val(),\n
form_id: $(\'input[name=gadget_form_id]\').val(),\n form_id: $(\'input[name=gadget_form_id]\').val(),\n
editable_mode: 1,\n editable_mode: 1\n
},\n },\n
success: function(data2) {\n success: function(data2) {\n
folder_workflow_action_dialog_data = data2\n folder_workflow_action_dialog_data = data2;\n
$("div#change_state_dialog").append("<form id=\'change_state_form\'>" +\n $("div#change_state_dialog").append("<form id=\'change_state_form\'>" +\n
"<div class=\'change_state_dialog\'>" +\n "<div class=\'change_state_dialog\'>" +\n
"<table class=\'listbox listbox-table\'>" +\n "<table class=\'listbox listbox-table\'>" +\n
...@@ -550,8 +546,8 @@ $().ready(function(){\n ...@@ -550,8 +546,8 @@ $().ready(function(){\n
var folder_workflow_data = $(folder_workflow_action_dialog_data).find(\'input[type="hidden"]\').serializeArray();\n var folder_workflow_data = $(folder_workflow_action_dialog_data).find(\'input[type="hidden"]\').serializeArray();\n
var change_state_data = $(\'form#change_state_form\').serializeArray();\n var change_state_data = $(\'form#change_state_form\').serializeArray();\n
var merge = {};\n var merge = {};\n
$.map(folder_workflow_data, function(n,i){merge[n.name] = n.value});\n $.map(folder_workflow_data, function(n,i){merge[n.name] = n.value;});\n
$.map(change_state_data, function(n,i){merge[n.name] = n.value});\n $.map(change_state_data, function(n,i){merge[n.name] = n.value;});\n
merge[\'form_id\'] = \'WebSection_viewUNGDocumentList\';\n merge[\'form_id\'] = \'WebSection_viewUNGDocumentList\';\n
$.ajax({\n $.ajax({\n
async: false,\n async: false,\n
...@@ -560,7 +556,7 @@ $().ready(function(){\n ...@@ -560,7 +556,7 @@ $().ready(function(){\n
success: function(result){\n success: function(result){\n
var form_data = $(result).find(\'input[type="hidden"]\').serializeArray();\n var form_data = $(result).find(\'input[type="hidden"]\').serializeArray();\n
var merge2 = {};\n var merge2 = {};\n
$.map(form_data, function(n,i){merge2[n.name] = n.value});\n $.map(form_data, function(n,i){merge2[n.name] = n.value;});\n
$.ajax({\n $.ajax({\n
async: false,\n async: false,\n
url: \'web_site_module\' + "/Base_callDialogMethod",\n url: \'web_site_module\' + "/Base_callDialogMethod",\n
...@@ -575,19 +571,18 @@ $().ready(function(){\n ...@@ -575,19 +571,18 @@ $().ready(function(){\n
},\n },\n
Cancel: function() {\n Cancel: function() {\n
$( this ).dialog("close");\n $( this ).dialog("close");\n
},\n }\n
}\n }\n
});\n });\n
\n \n
$("button.ui-button, span.ui-icon").click(function(){$("p#hide_properties").click()});\n $("button.ui-button, span.ui-icon").click(function(){$("p#hide_properties").click();});\n
$("input#submit_document").click(function(event){\n $("input#submit_document").click(function(event){\n
if (document.getElementById("upload-file").value == ""){\n if (document.getElementById("upload-file").value === ""){\n
event.preventDefault();\n event.preventDefault();\n
$("span#no-input-file").show();\n $("span#no-input-file").show();\n
}\n }\n
});\n });\n
$("a[name=\'document_title\']")\n $("a[name=\'document_title\']").click(function(){\n
.click(function(){\n
$("div#more_property").hide();\n $("div#more_property").hide();\n
$("p#hide_properties").hide();\n $("p#hide_properties").hide();\n
var document_title = getObjectPropertyValue("getTitle");\n var document_title = getObjectPropertyValue("getTitle");\n
...@@ -601,7 +596,7 @@ $().ready(function(){\n ...@@ -601,7 +596,7 @@ $().ready(function(){\n
$("input#language.language").attr("value", getObjectPropertyValue("getLanguage"));\n $("input#language.language").attr("value", getObjectPropertyValue("getLanguage"));\n
$("input#sort_index.sort_index").attr("value", getObjectPropertyValue("getIntIndex"));\n $("input#sort_index.sort_index").attr("value", getObjectPropertyValue("getIntIndex"));\n
var subjectList = jQuery.parseJSON(getObjectPropertyValue(\'getSubjectList\').replace(/\'/g,\'"\'));\n var subjectList = jQuery.parseJSON(getObjectPropertyValue(\'getSubjectList\').replace(/\'/g,\'"\'));\n
if (subjectList != null) {\n if (subjectList !== null) {\n
$("textarea#keyword_list").attr("value", subjectList.join("\\n"));\n $("textarea#keyword_list").attr("value", subjectList.join("\\n"));\n
} else {\n } else {\n
$("textarea#keyword_list").attr("value", "");\n $("textarea#keyword_list").attr("value", "");\n
...@@ -614,8 +609,8 @@ $().ready(function(){\n ...@@ -614,8 +609,8 @@ $().ready(function(){\n
});\n });\n
$("span#knowledge_pad_module_8_titlean").text("1");\n $("span#knowledge_pad_module_8_titlean").text("1");\n
if ($("#tab-list-container #tabs ul li").length > 2) {\n if ($("#tab-list-container #tabs ul li").length > 2) {\n
$("li#add_new_tab_dialog_link.tab").hide()\n $("li#add_new_tab_dialog_link.tab").hide();\n
};\n }\n
$("div#add_new_gadget_link a#add-gadgets").removeAttr("onclick");\n $("div#add_new_gadget_link a#add-gadgets").removeAttr("onclick");\n
$("div#add_new_gadget_link a#add-gadgets").click(function(event){\n $("div#add_new_gadget_link a#add-gadgets").click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
...@@ -623,26 +618,7 @@ $().ready(function(){\n ...@@ -623,26 +618,7 @@ $().ready(function(){\n
$.getJSON("WebSection_getGadgetPathList", function(to_parse_data){\n $.getJSON("WebSection_getGadgetPathList", function(to_parse_data){\n
gadgetList = jQuery(to_parse_data);\n gadgetList = jQuery(to_parse_data);\n
gadgetList.each(function(){\n gadgetList.each(function(){\n
$("div.gadget-listbox table#gadget-table")\n $("div.gadget-listbox table#gadget-table").append($(\'<tr>\').append($(\'<td>\').append($(\'<input>\').attr(\'type\', \'checkbox\').attr(\'id\', this.id))).append($(\'<td>\').append($(\'<a>\').text(this.title))).append($(\'<td>\').append($(\'<img>\').attr(\'src\', this.image_url).text(this.title))));\n
.append($(\'<tr>\')\n
.append($(\'<td>\')\n
.append($(\'<input>\')\n
.attr(\'type\', \'checkbox\')\n
.attr(\'id\', this.id)\n
)\n
)\n
.append($(\'<td>\')\n
.append($(\'<a>\')\n
.text(this.title)\n
)\n
)\n
.append($(\'<td>\')\n
.append($(\'<img>\')\n
.attr(\'src\', this.image_url)\n
.text(this.title)\n
)\n
)\n
);\n
});\n });\n
});\n });\n
$("div.gadget-listbox").dialog("open");\n $("div.gadget-listbox").dialog("open");\n
...@@ -653,18 +629,17 @@ $().ready(function(){\n ...@@ -653,18 +629,17 @@ $().ready(function(){\n
$("div.listbox-tree, div.gadget-action div.front_pad").css("width", "79%");\n $("div.listbox-tree, div.gadget-action div.front_pad").css("width", "79%");\n
$("td.listbox-table-domain-tree-cell a").css("padding-right", "25px");\n $("td.listbox-table-domain-tree-cell a").css("padding-right", "25px");\n
$("div.header-right").css("width", "52.3%");\n $("div.header-right").css("width", "52.3%");\n
};\n }\n
$("a.tree-open").parent().parent().css("background-color", "#BBCCFF");\n $("a.tree-open").parent().parent().css("background-color", "#BBCCFF");\n
if (window.location.href.match("^http.*\\/unfoldDomain") != null){\n if (window.location.href.match("^http.*\\/unfoldDomain") !== null){\n
$("a.document").css("text-decoration", "none")\n $("a.document").css("text-decoration", "none").css("color", "#000");\n
.css("color", "#000");\n
}\n }\n
var h3Tag = $("div#page_wrapper div h3");\n var h3Tag = $("div#page_wrapper div h3");\n
if (h3Tag.text().replace(/^\\s+/,\'\').replace(/\\s+$/,\'\') == "Your tab is empty."){\n if (h3Tag.text().replace(/^\\s+/,\'\').replace(/\\s+$/,\'\') == "Your tab is empty."){\n
h3Tag.hide();\n h3Tag.hide();\n
}\n }\n
\n \n
if (!$("div.gadget-column").length == 0) {\n if (!$("div.gadget-column").length === 0) {\n
// render main document listbox\n // render main document listbox\n
$.ajax({\n $.ajax({\n
async: false,\n async: false,\n
...@@ -672,22 +647,22 @@ $().ready(function(){\n ...@@ -672,22 +647,22 @@ $().ready(function(){\n
data: {pad_relative_url: \'knowledge_pad_module/ung_knowledge_pad\', mode: \'web_front\'},\n data: {pad_relative_url: \'knowledge_pad_module/ung_knowledge_pad\', mode: \'web_front\'},\n
dataType: \'json\',\n dataType: \'json\',\n
success: function(data){\n success: function(data){\n
external_data = data\n external_data = data;\n
var data_html = $(data.body)[0]\n var data_html = $(data.body)[0];\n
//var data_script = $(data.body)[1].text\n //var data_script = $(data.body)[1].text\n
var data_script = data.javascript\n var data_script = data.javascript;\n
\n \n
ung_listbox_container = $(\'div#main_listbox-container\')\n ung_listbox_container = $(\'div#main_listbox-container\');\n
// fill body\n // fill body\n
ung_listbox_container.html(data_html);\n ung_listbox_container.html(data_html);\n
// attach listener\n // attach listener\n
ung_listbox_container.live(\'DOMSubtreeModified\', checkUNGListbox)\n ung_listbox_container.live(\'DOMSubtreeModified\', checkUNGListbox);\n
// eval script to update listbox\n // eval script to update listbox\n
eval(data_script)\n eval(data_script);\n
// remove class \'portal-column\' from main listbox\n // remove class \'portal-column\' from main listbox\n
// (as it should not interfere in user\'s box layout)\n // (as it should not interfere in user\'s box layout)\n
// updateServerBoxColumnLayout method uses \'div.portal-column\' as selector\n // updateServerBoxColumnLayout method uses \'div.portal-column\' as selector\n
ung_listbox_container.find(\'div.portal-column\')[0].className = \'\'\n ung_listbox_container.find(\'div.portal-column\')[0].className = \'\';\n
\n \n
configureUNGSearch(data_script);\n configureUNGSearch(data_script);\n
\n \n
...@@ -699,26 +674,26 @@ $().ready(function(){\n ...@@ -699,26 +674,26 @@ $().ready(function(){\n
});\n });\n
\n \n
function configureUNGSearch(data_script) {\n function configureUNGSearch(data_script) {\n
ung_listbox_updater_call = data_script\n ung_listbox_updater_call = data_script;\n
$(\'input#search_button\').click(function(event){\n $(\'input#search_button\').click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
var searched_text = $(\'input[name="field_your_search_text"]\').val()\n var searched_text = $(\'input[name="field_your_search_text"]\').val();\n
\n \n
// keep old function to call\n // keep old function to call\n
var originalUpdater = updater;\n var originalUpdater = updater;\n
// overwrite (shadowing) to change \'params\' param on the fly\n // overwrite (shadowing) to change \'params\' param on the fly\n
updater = function() {\n updater = function() {\n
// \'params\' is the fifth param, so treat it\n // \'params\' is the fifth param, so treat it\n
params = arguments[4]\n params = arguments[4];\n
params[\'SearchableText\'] = searched_text\n params[\'SearchableText\'] = searched_text;\n
originalUpdater.apply(this, arguments);\n originalUpdater.apply(this, arguments);\n
}\n };\n
// eval script\n // eval script\n
eval(data_script)\n eval(data_script);\n
\n \n
// restore old function\n // restore old function\n
updater = originalUpdater;\n updater = originalUpdater;\n
})\n });\n
}\n }\n
\n \n
function wrapUpdater() {\n function wrapUpdater() {\n
...@@ -740,7 +715,7 @@ function wrappedUpdater() {\n ...@@ -740,7 +715,7 @@ function wrappedUpdater() {\n
additional_request_params[element_name] = new Array();\n additional_request_params[element_name] = new Array();\n
}\n }\n
additional_request_params[element_name].push(element_value);\n additional_request_params[element_name].push(element_value);\n
})\n });\n
originalUpdater.apply(this, arguments);\n originalUpdater.apply(this, arguments);\n
}\n }\n
\n \n
...@@ -761,7 +736,7 @@ function checkUNGListbox() {\n ...@@ -761,7 +736,7 @@ function checkUNGListbox() {\n
\n \n
// re-attach listener\n // re-attach listener\n
ung_listbox_container.live(\'DOMSubtreeModified\', checkUNGListbox);\n ung_listbox_container.live(\'DOMSubtreeModified\', checkUNGListbox);\n
};\n }\n
}\n }\n
\n \n
function separateUNGListboxGadgetFields() {\n function separateUNGListboxGadgetFields() {\n
...@@ -790,7 +765,7 @@ function separateUNGListboxGadgetFields() {\n ...@@ -790,7 +765,7 @@ function separateUNGListboxGadgetFields() {\n
}\n }\n
\n \n
// remove \'listbox-title\' from header\n // remove \'listbox-title\' from header\n
$(\'div.listbox-title\').remove()\n $(\'div.listbox-title\').remove();\n
\n \n
// detach css of listbox-tree\n // detach css of listbox-tree\n
var listboxTreeHeight = data.find("div.listbox-tree").css("height").replace("px", "");\n var listboxTreeHeight = data.find("div.listbox-tree").css("height").replace("px", "");\n
...@@ -802,10 +777,10 @@ function separateUNGListboxGadgetFields() {\n ...@@ -802,10 +777,10 @@ function separateUNGListboxGadgetFields() {\n
window.location.reload();\n window.location.reload();\n
return false;\n return false;\n
}\n }\n
if (parseInt(listboxTreeHeight) > parseInt(domainTreeHeight)){\n if (parseInt(listboxTreeHeight,10) > parseInt(domainTreeHeight,10)){\n
data.find("div.listbox-tree").css("height", data.find("div.listbox-domain-tree-container").css("height"));\n data.find("div.listbox-tree").css("height", data.find("div.listbox-domain-tree-container").css("height"));\n
}\n }\n
if (parseInt(domainTreeHeight) > 233) {\n if (parseInt(domainTreeHeight,10) > 233) {\n
data.find("div.listbox-tree").css("overflow-y", "scroll");\n data.find("div.listbox-tree").css("overflow-y", "scroll");\n
}\n }\n
\n \n
...@@ -813,7 +788,7 @@ function separateUNGListboxGadgetFields() {\n ...@@ -813,7 +788,7 @@ function separateUNGListboxGadgetFields() {\n
var listbox_tree_div = data.find("div.listbox-tree").outerHTML();\n var listbox_tree_div = data.find("div.listbox-tree").outerHTML();\n
data.find("div.listbox-tree").remove();\n data.find("div.listbox-tree").remove();\n
// XXX: improve this behaviour of replacing\n // XXX: improve this behaviour of replacing\n
file_listbox_tree = $(\'div.file-quick-search\').find(\'div.listbox-tree\')\n file_listbox_tree = $(\'div.file-quick-search\').find(\'div.listbox-tree\');\n
if (file_listbox_tree.length >= 1) {\n if (file_listbox_tree.length >= 1) {\n
file_listbox_tree.replaceWith(listbox_tree_div);\n file_listbox_tree.replaceWith(listbox_tree_div);\n
} else {\n } else {\n
...@@ -840,6 +815,7 @@ function separateUNGListboxGadgetFields() {\n ...@@ -840,6 +815,7 @@ function separateUNGListboxGadgetFields() {\n
event.preventDefault();\n event.preventDefault();\n
changeCheckBoxValue(false);\n changeCheckBoxValue(false);\n
});\n });\n
return true;\n
}\n }\n
\n \n
function configureRefreshButton() {\n function configureRefreshButton() {\n
...@@ -850,23 +826,23 @@ function configureRefreshButton() {\n ...@@ -850,23 +826,23 @@ function configureRefreshButton() {\n
// overwrite (shadowing) to change \'params\' param on the fly\n // overwrite (shadowing) to change \'params\' param on the fly\n
updater = function() {\n updater = function() {\n
// \'params\' is the fifth param, so treat it\n // \'params\' is the fifth param, so treat it\n
params = arguments[4]\n params = arguments[4];\n
params[\'reset:int\'] = 1\n params[\'reset:int\'] = 1;\n
originalUpdater.apply(this, arguments);\n originalUpdater.apply(this, arguments);\n
}\n };\n
// eval script\n // eval script\n
eval(ung_listbox_updater_call)\n eval(ung_listbox_updater_call);\n
\n \n
// restore old function\n // restore old function\n
updater = originalUpdater;\n updater = originalUpdater;\n
})\n });\n
}\n }\n
\n \n
function setPortalStatusMessage(status_message) {\n function setPortalStatusMessage(status_message) {\n
//display warning\n //display warning\n
status_message_tag = $(\'div.portal_status_message\')\n status_message_tag = $(\'div.portal_status_message\');\n
status_message_tag.css("font-weight", "bold")\n status_message_tag.css("font-weight", "bold");\n
status_message_tag.text(status_message)\n status_message_tag.text(status_message);\n
}\n }\n
......
...@@ -44,6 +44,7 @@ function callBeforeRequest(type){\n ...@@ -44,6 +44,7 @@ function callBeforeRequest(type){\n
case 4:\n case 4:\n
message = "The request is being processed ...";\n message = "The request is being processed ...";\n
break;\n break;\n
default: break;\n
}\n }\n
$("#errorpannel").hide();\n $("#errorpannel").hide();\n
$("#loadingpannel").html(message).show();\n $("#loadingpannel").html(message).show();\n
...@@ -89,14 +90,14 @@ function Edit(data){\n ...@@ -89,14 +90,14 @@ function Edit(data){\n
{name : \'title\', \'value\': dataHash.title},\n {name : \'title\', \'value\': dataHash.title},\n
{name : \'request_type\', \'value\': \'update\'},\n {name : \'request_type\', \'value\': \'update\'},\n
{name : \'event_id\', \'value\': $("input#event_id").attr("value")},\n {name : \'event_id\', \'value\': $("input#event_id").attr("value")},\n
{name : \'event_text_content\', \'value\': dataHash.event_text_content}]\n {name : \'event_text_content\', \'value\': dataHash.event_text_content}];\n
\n \n
$.post("Base_updateCalendarEventList", paramList, function(){\n $.post("Base_updateCalendarEventList", paramList, function(){\n
$("div#new_event_dialog").dialog("close");\n $("div#new_event_dialog").dialog("close");\n
$("div#showreflashbtn.fbutton").click();\n $("div#showreflashbtn.fbutton").click();\n
});\n });\n
},\n }\n
},\n }\n
});\n });\n
$("div#new_event_dialog").load(url, {}, function(){\n $("div#new_event_dialog").load(url, {}, function(){\n
$("form#create_new_event").append("<input type=\'hidden\' id=\'event_id\'/>");\n $("form#create_new_event").append("<input type=\'hidden\' id=\'event_id\'/>");\n
...@@ -105,13 +106,13 @@ function Edit(data){\n ...@@ -105,13 +106,13 @@ function Edit(data){\n
$("textarea[name=\'event_text_content\']").val(data[11]);\n $("textarea[name=\'event_text_content\']").val(data[11]);\n
$("input[name=\'title\']").attr("value", data[1]);\n $("input[name=\'title\']").attr("value", data[1]);\n
$("input.start_date_field[name=\'start_date_year\']").attr("value", data[2].getFullYear());\n $("input.start_date_field[name=\'start_date_year\']").attr("value", data[2].getFullYear());\n
$("input.start_date_field[name=\'start_date_month\']").attr("value", (parseInt(data[2].getMonth()) + 1));\n $("input.start_date_field[name=\'start_date_month\']").attr("value", (parseInt(data[2].getMonth(),10) + 1));\n
$("input.start_date_field[name=\'start_date_day\']").attr("value", data[2].getDate());\n $("input.start_date_field[name=\'start_date_day\']").attr("value", data[2].getDate());\n
$("input.start_date_field[name=\'start_date_hour\']").attr("value", data[2].getHours());\n $("input.start_date_field[name=\'start_date_hour\']").attr("value", data[2].getHours());\n
$("input.start_date_field[name=\'start_date_minute\']").attr("value", data[2].getMinutes());\n $("input.start_date_field[name=\'start_date_minute\']").attr("value", data[2].getMinutes());\n
\n \n
$("input.stop_date_field[name=\'stop_date_year\']").attr("value", data[3].getFullYear());\n $("input.stop_date_field[name=\'stop_date_year\']").attr("value", data[3].getFullYear());\n
$("input.stop_date_field[name=\'stop_date_month\']").attr("value", (parseInt(data[3].getMonth()) + 1));\n $("input.stop_date_field[name=\'stop_date_month\']").attr("value", (parseInt(data[3].getMonth(),10) + 1));\n
$("input.stop_date_field[name=\'stop_date_day\']").attr("value", data[3].getDate());\n $("input.stop_date_field[name=\'stop_date_day\']").attr("value", data[3].getDate());\n
$("input.stop_date_field[name=\'stop_date_hour\']").attr("value", data[3].getHours());\n $("input.stop_date_field[name=\'stop_date_hour\']").attr("value", data[3].getHours());\n
$("input.stop_date_field[name=\'stop_date_minute\']").attr("value", data[3].getMinutes());\n $("input.stop_date_field[name=\'stop_date_minute\']").attr("value", data[3].getMinutes());\n
...@@ -165,7 +166,7 @@ function createFieldToInsertOnDialog(){\n ...@@ -165,7 +166,7 @@ function createFieldToInsertOnDialog(){\n
"<option>Site Message</option>" + \n "<option>Site Message</option>" + \n
"<option>Visit</option>" +\n "<option>Visit</option>" +\n
"<option>Web Message</option>" +\n "<option>Web Message</option>" +\n
"</select></td>"\n "</select></td>";\n
}\n }\n
\n \n
i18n.xgcalendar.content = "Title";\n i18n.xgcalendar.content = "Title";\n
...@@ -191,7 +192,7 @@ $(document).ready(function() { \n ...@@ -191,7 +192,7 @@ $(document).ready(function() { \n
quickAddUrl: DATA_FEED_URL + "?request_type=add",\n quickAddUrl: DATA_FEED_URL + "?request_type=add",\n
quickUpdateUrl: DATA_FEED_URL + "?request_type=update",\n quickUpdateUrl: DATA_FEED_URL + "?request_type=update",\n
quickDeleteUrl: DATA_FEED_URL + "?request_type=remove",\n quickDeleteUrl: DATA_FEED_URL + "?request_type=remove",\n
loadFieldOnDialog: createFieldToInsertOnDialog, \n loadFieldOnDialog: createFieldToInsertOnDialog \n
};\n };\n
var $dv = $("#calhead");\n var $dv = $("#calhead");\n
var _MH = document.documentElement.clientHeight;\n var _MH = document.documentElement.clientHeight;\n
...@@ -205,7 +206,7 @@ $(document).ready(function() { \n ...@@ -205,7 +206,7 @@ $(document).ready(function() { \n
$("div.toolbar-listview, div.event-listview").remove();\n $("div.toolbar-listview, div.event-listview").remove();\n
$("#caltoolbar div.fcurrent").each(function() {\n $("#caltoolbar div.fcurrent").each(function() {\n
$(this).removeClass("fcurrent");\n $(this).removeClass("fcurrent");\n
})\n });\n
$(this).addClass("fcurrent");\n $(this).addClass("fcurrent");\n
var optionList = $("#gridcontainer").swtichView("day").BcalGetOp();\n var optionList = $("#gridcontainer").swtichView("day").BcalGetOp();\n
$("div#display-datetime span#text-datetime").text(optionList.datestrshow);\n $("div#display-datetime span#text-datetime").text(optionList.datestrshow);\n
...@@ -215,7 +216,7 @@ $(document).ready(function() { \n ...@@ -215,7 +216,7 @@ $(document).ready(function() { \n
$("div.toolbar-listview, div.event-listview").remove();\n $("div.toolbar-listview, div.event-listview").remove();\n
$("#caltoolbar div.fcurrent").each(function() {\n $("#caltoolbar div.fcurrent").each(function() {\n
$(this).removeClass("fcurrent");\n $(this).removeClass("fcurrent");\n
})\n });\n
$(this).addClass("fcurrent");\n $(this).addClass("fcurrent");\n
var optionList = $("#gridcontainer").swtichView("week").BcalGetOp();\n var optionList = $("#gridcontainer").swtichView("week").BcalGetOp();\n
$("div#display-datetime span#text-datetime").text(optionList.datestrshow);\n $("div#display-datetime span#text-datetime").text(optionList.datestrshow);\n
...@@ -225,7 +226,7 @@ $(document).ready(function() { \n ...@@ -225,7 +226,7 @@ $(document).ready(function() { \n
$("div.toolbar-listview, div.event-listview").remove();\n $("div.toolbar-listview, div.event-listview").remove();\n
$("#caltoolbar div.fcurrent").each(function() {\n $("#caltoolbar div.fcurrent").each(function() {\n
$(this).removeClass("fcurrent");\n $(this).removeClass("fcurrent");\n
})\n });\n
$(this).addClass("fcurrent");\n $(this).addClass("fcurrent");\n
var optionList = $("#gridcontainer").swtichView("month").BcalGetOp();\n var optionList = $("#gridcontainer").swtichView("month").BcalGetOp();\n
$("div#display-datetime span#text-datetime").text(optionList.datestrshow);\n $("div#display-datetime span#text-datetime").text(optionList.datestrshow);\n
...@@ -264,7 +265,7 @@ $(document).ready(function() { \n ...@@ -264,7 +265,7 @@ $(document).ready(function() { \n
autoOpen: false,\n autoOpen: false,\n
height: 248,\n height: 248,\n
width: 410,\n width: 410,\n
modal: true,\n modal: true\n
});\n });\n
$("#datepicker").datepicker({\n $("#datepicker").datepicker({\n
onSelect: function(dateText, inst){\n onSelect: function(dateText, inst){\n
...@@ -278,12 +279,12 @@ $(document).ready(function() { \n ...@@ -278,12 +279,12 @@ $(document).ready(function() { \n
});\n });\n
$("input#submit-search").click(function(event){\n $("input#submit-search").click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
if ($("input[name=\'searchable-text\']").val() == "")\n if ($("input[name=\'searchable-text\']").val() === "")\n
return false;\n return false;\n
$("div#dvCalMain.calmain div#gridcontainer").css("background", "none repeat scroll 0 0 #FFFFFF");\n $("div#dvCalMain.calmain div#gridcontainer").css("background", "none repeat scroll 0 0 #FFFFFF");\n
$("div#dvwkcontaienr.wktopcontainer").remove();\n $("div#dvwkcontaienr.wktopcontainer").remove();\n
$("div#gridcontainer div#dvtec.scolltimeevent").remove();\n $("div#gridcontainer div#dvtec.scolltimeevent").remove();\n
if (document.getElementById("blank-result") != null){\n if (document.getElementById("blank-result") !== null){\n
$("div#blank-result").remove();\n $("div#blank-result").remove();\n
}\n }\n
$("div#gridcontainer div.event-listview,div#gridcontainer div.toolbar-listview").remove();\n $("div#gridcontainer div.event-listview,div#gridcontainer div.toolbar-listview").remove();\n
...@@ -299,7 +300,7 @@ $(document).ready(function() { \n ...@@ -299,7 +300,7 @@ $(document).ready(function() { \n
tableList.push("<table width=\'100%\' cellspacing=\'0\' cellpadding=\'2\'><tbody>");\n tableList.push("<table width=\'100%\' cellspacing=\'0\' cellpadding=\'2\'><tbody>");\n
text = $("input[name=\'searchable-text\']").val();\n text = $("input[name=\'searchable-text\']").val();\n
paramList = [{name: "request_type", value: "list"}];\n paramList = [{name: "request_type", value: "list"}];\n
if (text != "")\n if (text !== "")\n
paramList.push({name: "SearchableText", value: text});\n paramList.push({name: "SearchableText", value: text});\n
$.ajax({\n $.ajax({\n
url:"Base_updateCalendarEventList",\n url:"Base_updateCalendarEventList",\n
...@@ -341,17 +342,16 @@ $(document).ready(function() { \n ...@@ -341,17 +342,16 @@ $(document).ready(function() { \n
$("#gridcontainer").bcalendar(op).BcalGetOp();\n $("#gridcontainer").bcalendar(op).BcalGetOp();\n
});\n });\n
if ($("div.event-listview tr").height() > 0){\n if ($("div.event-listview tr").height() > 0){\n
$("div#gridcontainer").css("height", \n $("div#gridcontainer").css("height",\n
$("div#gridcontainer table tbody tr").length*$("div.event-listview tr").height() + "px");\n $("div#gridcontainer table tbody tr").length*$("div.event-listview tr").height() + "px");\n
} else {\n } else {\n
$("div#gridcontainer")\n $("div#gridcontainer").css("height", "54px").append("<div id=\'blank-result\'>No Results</div>");\n
.css("height", "54px")\n
.append("<div id=\'blank-result\'>No Results</div>");\n
}\n }\n
},\n }\n
});\n });\n
tableList.push("</tbody></table></div>");\n tableList.push("</tbody></table></div>");\n
$("div#gridcontainer").append(tableList.join(""));\n $("div#gridcontainer").append(tableList.join(""));\n
return true;\n
});\n });\n
$("img[alt=\'calendar_logo_box\']").click(function(){\n $("img[alt=\'calendar_logo_box\']").click(function(){\n
window.location.reload();\n window.location.reload();\n
...@@ -363,14 +363,14 @@ $("div#new_event_dialog").ready(function(){\n ...@@ -363,14 +363,14 @@ $("div#new_event_dialog").ready(function(){\n
title: "Create New Event",\n title: "Create New Event",\n
autoOpen: false,\n autoOpen: false,\n
buttons: {\n buttons: {\n
"Create": createNewEvent,\n "Create": createNewEvent\n
},\n }\n
});\n });\n
});\n });\n
\n \n
window.onload = function(){\n window.onload = function(){\n
$("div#dvCalMain.calmain").parent().css("padding", "0 0 0 1px");\n $("div#dvCalMain.calmain").parent().css("padding", "0 0 0 1px");\n
} };
]]></string> </value> ]]></string> </value>
</item> </item>
......
...@@ -102,7 +102,7 @@ $().ready(function(){\n ...@@ -102,7 +102,7 @@ $().ready(function(){\n
data: emailUid,\n data: emailUid,\n
mediaType: "json",\n mediaType: "json",\n
success: function(data){\n success: function(data){\n
var data = jQuery.parseJSON(data);\n data = jQuery.parseJSON(data);\n
$("div.main-right fieldset.widget").hide();\n $("div.main-right fieldset.widget").hide();\n
$("div.main-right").css("background-color", "#BBCCFF");\n $("div.main-right").css("background-color", "#BBCCFF");\n
$("div.main-right").load("EmailThread_formView", {}, function(){\n $("div.main-right").load("EmailThread_formView", {}, function(){\n
...@@ -111,12 +111,12 @@ $().ready(function(){\n ...@@ -111,12 +111,12 @@ $().ready(function(){\n
}\n }\n
$("button#save-mail, button#send-mail").click(saveEmailThread);\n $("button#save-mail, button#send-mail").click(saveEmailThread);\n
$(this).ready(function(){\n $(this).ready(function(){\n
(data.cc != null) ? $("textarea#cc").attr("value", data.cc) : null;\n (data.cc !== null) ? $("textarea#cc").attr("value", data.cc) : null;\n
(data.bcc != null) ? $("textarea#bcc").attr("value", data.bcc) : null;\n (data.bcc !== null) ? $("textarea#bcc").attr("value", data.bcc) : null;\n
(data.to != null) ? $("textarea#to").attr("value", data.to) : null;\n (data.to !== null) ? $("textarea#to").attr("value", data.to) : null;\n
(data.text_content != null) ? $("textarea#text-content").attr("value", data.text_content) : null;\n (data.text_content !== null) ? $("textarea#text-content").attr("value", data.text_content) : null;\n
(data.subject != null) ? $("input#subject").attr("value", data.subject) : null;\n (data.subject !== null) ? $("input#subject").attr("value", data.subject) : null;\n
(data.id != null) ? $("div.compose-mail-page").data("event_id", data.id) : null;\n (data.id !== null) ? $("div.compose-mail-page").data("event_id", data.id) : null;\n
loadEmailFormActions();\n loadEmailFormActions();\n
});\n });\n
});\n });\n
......
411 412
\ No newline at end of file \ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts83858910.28</string> </value> <value> <string>ts68196012.44</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -26,346 +26,346 @@ ...@@ -26,346 +26,346 @@
<key> <string>data</string> </key> <key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
/*\r\n /*\n
* FCKeditor - The text editor for Internet - http://www.fckeditor.net\r\n * FCKeditor - The text editor for Internet - http://www.fckeditor.net\n
* Copyright (C) 2003-2010 Frederico Caldeira Knabben\r\n * Copyright (C) 2003-2010 Frederico Caldeira Knabben\n
*\r\n *\n
* == BEGIN LICENSE ==\r\n * == BEGIN LICENSE ==\n
*\r\n *\n
* Licensed under the terms of any of the following licenses at your\r\n * Licensed under the terms of any of the following licenses at your\n
* choice:\r\n * choice:\n
*\r\n *\n
* - GNU General Public License Version 2 or later (the "GPL")\r\n * - GNU General Public License Version 2 or later (the "GPL")\n
* http://www.gnu.org/licenses/gpl.html\r\n * http://www.gnu.org/licenses/gpl.html\n
*\r\n *\n
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r\n * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\n
* http://www.gnu.org/licenses/lgpl.html\r\n * http://www.gnu.org/licenses/lgpl.html\n
*\r\n *\n
* - Mozilla Public License Version 1.1 or later (the "MPL")\r\n * - Mozilla Public License Version 1.1 or later (the "MPL")\n
* http://www.mozilla.org/MPL/MPL-1.1.html\r\n * http://www.mozilla.org/MPL/MPL-1.1.html\n
*\r\n *\n
* == END LICENSE ==\r\n * == END LICENSE ==\n
*\r\n *\n
* Editor configuration settings.\r\n * Editor configuration settings.\n
*\r\n *\n
* Follow this link for more information:\r\n * Follow this link for more information:\n
* http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options\r\n * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options\n
*/\r\n */\n
\r\n \n
FCKConfig.CustomConfigurationsPath = \'\' ;\r\n FCKConfig.CustomConfigurationsPath = \'\' ;\n
\r\n \n
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + \'css/fck_editorarea.css\' ;\r\n FCKConfig.EditorAreaCSS = FCKConfig.BasePath + \'css/fck_editorarea.css\' ;\n
FCKConfig.EditorAreaStyles = \'\' ;\r\n FCKConfig.EditorAreaStyles = \'\' ;\n
FCKConfig.ToolbarComboPreviewCSS = \'\' ;\r\n FCKConfig.ToolbarComboPreviewCSS = \'\' ;\n
\r\n \n
FCKConfig.DocType = \'\' ;\r\n FCKConfig.DocType = \'\' ;\n
\r\n \n
FCKConfig.BaseHref = \'\' ;\r\n FCKConfig.BaseHref = \'\' ;\n
\r\n \n
FCKConfig.FullPage = false ;\r\n FCKConfig.FullPage = false ;\n
\r\n \n
// The following option determines whether the "Show Blocks" feature is enabled or not at startup.\r\n // The following option determines whether the "Show Blocks" feature is enabled or not at startup.\n
FCKConfig.StartupShowBlocks = false ;\r\n FCKConfig.StartupShowBlocks = false ;\n
\r\n \n
FCKConfig.Debug = false ;\r\n FCKConfig.Debug = false ;\n
FCKConfig.AllowQueryStringDebug = true ;\r\n FCKConfig.AllowQueryStringDebug = true ;\n
\r\n \n
FCKConfig.SkinPath = FCKConfig.BasePath + \'skins/default/\' ;\r\n FCKConfig.SkinPath = FCKConfig.BasePath + \'skins/default/\' ;\n
FCKConfig.SkinEditorCSS = \'\' ;\t// FCKConfig.SkinPath + "|<minified css>" ;\r\n FCKConfig.SkinEditorCSS = \'\' ;\t// FCKConfig.SkinPath + "|<minified css>" ;\n
FCKConfig.SkinDialogCSS = \'\' ;\t// FCKConfig.SkinPath + "|<minified css>" ;\r\n FCKConfig.SkinDialogCSS = \'\' ;\t// FCKConfig.SkinPath + "|<minified css>" ;\n
\r\n \n
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + \'images/toolbar.start.gif\', FCKConfig.SkinPath + \'images/toolbar.buttonarrow.gif\' ] ;\r\n FCKConfig.PreloadImages = [ FCKConfig.SkinPath + \'images/toolbar.start.gif\', FCKConfig.SkinPath + \'images/toolbar.buttonarrow.gif\' ] ;\n
\r\n \n
FCKConfig.PluginsPath = FCKConfig.BasePath + \'plugins/\' ;\r\n FCKConfig.PluginsPath = FCKConfig.BasePath + \'plugins/\' ;\n
\r\n \n
// FCKConfig.Plugins.Add( \'autogrow\' ) ;\r\n // FCKConfig.Plugins.Add( \'autogrow\' ) ;\n
// FCKConfig.Plugins.Add( \'dragresizetable\' );\r\n // FCKConfig.Plugins.Add( \'dragresizetable\' );\n
FCKConfig.AutoGrowMax = 400 ;\r\n FCKConfig.AutoGrowMax = 400 ;\n
\r\n \n
// FCKConfig.ProtectedSource.Add( /<%[\\s\\S]*?%>/g ) ;\t// ASP style server side code <%...%>\r\n // FCKConfig.ProtectedSource.Add( /<%[\\s\\S]*?%>/g ) ;\t// ASP style server side code <%...%>\n
// FCKConfig.ProtectedSource.Add( /<\\?[\\s\\S]*?\\?>/g ) ;\t// PHP style server side code\r\n // FCKConfig.ProtectedSource.Add( /<\\?[\\s\\S]*?\\?>/g ) ;\t// PHP style server side code\n
// FCKConfig.ProtectedSource.Add( /(<asp:[^\\>]+>[\\s|\\S]*?<\\/asp:[^\\>]+>)|(<asp:[^\\>]+\\/>)/gi ) ;\t// ASP.Net style tags <asp:control>\r\n // FCKConfig.ProtectedSource.Add( /(<asp:[^\\>]+>[\\s|\\S]*?<\\/asp:[^\\>]+>)|(<asp:[^\\>]+\\/>)/gi ) ;\t// ASP.Net style tags <asp:control>\n
\r\n \n
FCKConfig.AutoDetectLanguage\t= true ;\r\n FCKConfig.AutoDetectLanguage\t= true ;\n
FCKConfig.DefaultLanguage\t\t= \'en\' ;\r\n FCKConfig.DefaultLanguage\t\t= \'en\' ;\n
FCKConfig.ContentLangDirection\t= \'ltr\' ;\r\n FCKConfig.ContentLangDirection\t= \'ltr\' ;\n
\r\n \n
FCKConfig.ProcessHTMLEntities\t= true ;\r\n FCKConfig.ProcessHTMLEntities\t= true ;\n
FCKConfig.IncludeLatinEntities\t= true ;\r\n FCKConfig.IncludeLatinEntities\t= true ;\n
FCKConfig.IncludeGreekEntities\t= true ;\r\n FCKConfig.IncludeGreekEntities\t= true ;\n
\r\n \n
FCKConfig.ProcessNumericEntities = false ;\r\n FCKConfig.ProcessNumericEntities = false ;\n
\r\n \n
FCKConfig.AdditionalNumericEntities = \'\' ;\t\t// Single Quote: "\'"\r\n FCKConfig.AdditionalNumericEntities = \'\' ;\t\t// Single Quote: "\'"\n
\r\n \n
FCKConfig.FillEmptyBlocks\t= true ;\r\n FCKConfig.FillEmptyBlocks\t= true ;\n
\r\n \n
FCKConfig.FormatSource\t\t= true ;\r\n FCKConfig.FormatSource\t\t= true ;\n
FCKConfig.FormatOutput\t\t= true ;\r\n FCKConfig.FormatOutput\t\t= true ;\n
FCKConfig.FormatIndentator\t= \' \' ;\r\n FCKConfig.FormatIndentator\t= \' \' ;\n
\r\n \n
FCKConfig.EMailProtection = \'none\' ; // none | encode | function\r\n FCKConfig.EMailProtection = \'none\' ; // none | encode | function\n
FCKConfig.EMailProtectionFunction = \'mt(NAME,DOMAIN,SUBJECT,BODY)\' ;\r\n FCKConfig.EMailProtectionFunction = \'mt(NAME,DOMAIN,SUBJECT,BODY)\' ;\n
\r\n \n
FCKConfig.StartupFocus\t= false ;\r\n FCKConfig.StartupFocus\t= false ;\n
FCKConfig.ForcePasteAsPlainText\t= false ;\r\n FCKConfig.ForcePasteAsPlainText\t= false ;\n
FCKConfig.AutoDetectPasteFromWord = true ;\t// IE only.\r\n FCKConfig.AutoDetectPasteFromWord = true ;\t// IE only.\n
FCKConfig.ShowDropDialog = true ;\r\n FCKConfig.ShowDropDialog = true ;\n
FCKConfig.ForceSimpleAmpersand\t= false ;\r\n FCKConfig.ForceSimpleAmpersand\t= false ;\n
FCKConfig.TabSpaces\t\t= 0 ;\r\n FCKConfig.TabSpaces\t\t= 0 ;\n
FCKConfig.ShowBorders\t= true ;\r\n FCKConfig.ShowBorders\t= true ;\n
FCKConfig.SourcePopup\t= false ;\r\n FCKConfig.SourcePopup\t= false ;\n
FCKConfig.ToolbarStartExpanded\t= true ;\r\n FCKConfig.ToolbarStartExpanded\t= true ;\n
FCKConfig.ToolbarCanCollapse\t= true ;\r\n FCKConfig.ToolbarCanCollapse\t= true ;\n
FCKConfig.IgnoreEmptyParagraphValue = true ;\r\n FCKConfig.IgnoreEmptyParagraphValue = true ;\n
FCKConfig.FloatingPanelsZIndex = 10000 ;\r\n FCKConfig.FloatingPanelsZIndex = 10000 ;\n
FCKConfig.HtmlEncodeOutput = false ;\r\n FCKConfig.HtmlEncodeOutput = false ;\n
\r\n \n
FCKConfig.TemplateReplaceAll = true ;\r\n FCKConfig.TemplateReplaceAll = true ;\n
FCKConfig.TemplateReplaceCheckbox = true ;\r\n FCKConfig.TemplateReplaceCheckbox = true ;\n
\r\n \n
FCKConfig.ToolbarLocation = \'In\' ;\r\n FCKConfig.ToolbarLocation = \'In\' ;\n
\r\n \n
FCKConfig.ToolbarSets["Default"] = [\r\n FCKConfig.ToolbarSets["Default"] = [\n
\t[\'Source\',\'DocProps\',\'-\',\'Save\',\'NewPage\',\'Preview\',\'-\',\'Templates\'],\r\n \t[\'Source\',\'DocProps\',\'-\',\'Save\',\'NewPage\',\'Preview\',\'-\',\'Templates\'],\n
\t[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteWord\',\'-\',\'Print\',\'SpellCheck\'],\r\n \t[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteWord\',\'-\',\'Print\',\'SpellCheck\'],\n
\t[\'Undo\',\'Redo\',\'-\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],\r\n \t[\'Undo\',\'Redo\',\'-\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],\n
\t[\'Form\',\'Checkbox\',\'Radio\',\'TextField\',\'Textarea\',\'Select\',\'Button\',\'ImageButton\',\'HiddenField\'],\r\n \t[\'Form\',\'Checkbox\',\'Radio\',\'TextField\',\'Textarea\',\'Select\',\'Button\',\'ImageButton\',\'HiddenField\'],\n
\t\'/\',\r\n \t\'/\',\n
\t[\'Bold\',\'Italic\',\'Underline\',\'StrikeThrough\',\'-\',\'Subscript\',\'Superscript\'],\r\n \t[\'Bold\',\'Italic\',\'Underline\',\'StrikeThrough\',\'-\',\'Subscript\',\'Superscript\'],\n
\t[\'OrderedList\',\'UnorderedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\',\'CreateDiv\'],\r\n \t[\'OrderedList\',\'UnorderedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\',\'CreateDiv\'],\n
\t[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyFull\'],\r\n \t[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyFull\'],\n
\t[\'Link\',\'Unlink\',\'Anchor\'],\r\n \t[\'Link\',\'Unlink\',\'Anchor\'],\n
\t[\'Image\',\'Flash\',\'Table\',\'Rule\',\'Smiley\',\'SpecialChar\',\'PageBreak\'],\r\n \t[\'Image\',\'Flash\',\'Table\',\'Rule\',\'Smiley\',\'SpecialChar\',\'PageBreak\'],\n
\t\'/\',\r\n \t\'/\',\n
\t[\'Style\',\'FontFormat\',\'FontName\',\'FontSize\'],\r\n \t[\'Style\',\'FontFormat\',\'FontName\',\'FontSize\'],\n
\t[\'TextColor\',\'BGColor\'],\r\n \t[\'TextColor\',\'BGColor\'],\n
\t[\'FitWindow\',\'ShowBlocks\',\'-\',\'About\']\t\t// No comma for the last row.\r\n \t[\'FitWindow\',\'ShowBlocks\',\'-\',\'About\']\t\t// No comma for the last row.\n
] ;\r\n ] ;\n
\r\n \n
FCKConfig.ToolbarSets["Basic"] = [\r\n FCKConfig.ToolbarSets["Basic"] = [\n
\t[\'Bold\',\'Italic\',\'-\',\'OrderedList\',\'UnorderedList\',\'-\',\'Link\',\'Unlink\',\'-\',\'About\']\r\n \t[\'Bold\',\'Italic\',\'-\',\'OrderedList\',\'UnorderedList\',\'-\',\'Link\',\'Unlink\',\'-\',\'About\']\n
] ;\r\n ] ;\n
\r\n \n
FCKConfig.EnterMode = \'p\' ;\t\t\t// p | div | br\r\n FCKConfig.EnterMode = \'p\' ;\t\t\t// p | div | br\n
FCKConfig.ShiftEnterMode = \'br\' ;\t// p | div | br\r\n FCKConfig.ShiftEnterMode = \'br\' ;\t// p | div | br\n
\r\n \n
FCKConfig.Keystrokes = [\r\n FCKConfig.Keystrokes = [\n
\t[ CTRL + 65 /*A*/, true ],\r\n \t[ CTRL + 65 /*A*/, true ],\n
\t[ CTRL + 67 /*C*/, true ],\r\n \t[ CTRL + 67 /*C*/, true ],\n
\t[ CTRL + 70 /*F*/, true ],\r\n \t[ CTRL + 70 /*F*/, true ],\n
\t[ CTRL + 83 /*S*/, true ],\r\n \t[ CTRL + 83 /*S*/, true ],\n
\t[ CTRL + 84 /*T*/, true ],\r\n \t[ CTRL + 84 /*T*/, true ],\n
\t[ CTRL + 88 /*X*/, true ],\r\n \t[ CTRL + 88 /*X*/, true ],\n
\t[ CTRL + 86 /*V*/, \'Paste\' ],\r\n \t[ CTRL + 86 /*V*/, \'Paste\' ],\n
\t[ CTRL + 45 /*INS*/, true ],\r\n \t[ CTRL + 45 /*INS*/, true ],\n
\t[ SHIFT + 45 /*INS*/, \'Paste\' ],\r\n \t[ SHIFT + 45 /*INS*/, \'Paste\' ],\n
\t[ CTRL + 88 /*X*/, \'Cut\' ],\r\n \t[ CTRL + 88 /*X*/, \'Cut\' ],\n
\t[ SHIFT + 46 /*DEL*/, \'Cut\' ],\r\n \t[ SHIFT + 46 /*DEL*/, \'Cut\' ],\n
\t[ CTRL + 90 /*Z*/, \'Undo\' ],\r\n \t[ CTRL + 90 /*Z*/, \'Undo\' ],\n
\t[ CTRL + 89 /*Y*/, \'Redo\' ],\r\n \t[ CTRL + 89 /*Y*/, \'Redo\' ],\n
\t[ CTRL + SHIFT + 90 /*Z*/, \'Redo\' ],\r\n \t[ CTRL + SHIFT + 90 /*Z*/, \'Redo\' ],\n
\t[ CTRL + 76 /*L*/, \'Link\' ],\r\n \t[ CTRL + 76 /*L*/, \'Link\' ],\n
\t[ CTRL + 66 /*B*/, \'Bold\' ],\r\n \t[ CTRL + 66 /*B*/, \'Bold\' ],\n
\t[ CTRL + 73 /*I*/, \'Italic\' ],\r\n \t[ CTRL + 73 /*I*/, \'Italic\' ],\n
\t[ CTRL + 85 /*U*/, \'Underline\' ],\r\n \t[ CTRL + 85 /*U*/, \'Underline\' ],\n
\t[ CTRL + SHIFT + 83 /*S*/, \'Save\' ],\r\n \t[ CTRL + SHIFT + 83 /*S*/, \'Save\' ],\n
\t[ CTRL + ALT + 13 /*ENTER*/, \'FitWindow\' ],\r\n \t[ CTRL + ALT + 13 /*ENTER*/, \'FitWindow\' ],\n
\t[ SHIFT + 32 /*SPACE*/, \'Nbsp\' ]\r\n \t[ SHIFT + 32 /*SPACE*/, \'Nbsp\' ]\n
] ;\r\n ] ;\n
\r\n \n
FCKConfig.ContextMenu = [\'Generic\',\'Link\',\'Anchor\',\'Image\',\'Flash\',\'Select\',\'Textarea\',\'Checkbox\',\'Radio\',\'TextField\',\'HiddenField\',\'ImageButton\',\'Button\',\'BulletedList\',\'NumberedList\',\'Table\',\'Form\',\'DivContainer\'] ;\r\n FCKConfig.ContextMenu = [\'Generic\',\'Link\',\'Anchor\',\'Image\',\'Flash\',\'Select\',\'Textarea\',\'Checkbox\',\'Radio\',\'TextField\',\'HiddenField\',\'ImageButton\',\'Button\',\'BulletedList\',\'NumberedList\',\'Table\',\'Form\',\'DivContainer\'] ;\n
FCKConfig.BrowserContextMenuOnCtrl = false ;\r\n FCKConfig.BrowserContextMenuOnCtrl = false ;\n
FCKConfig.BrowserContextMenu = false ;\r\n FCKConfig.BrowserContextMenu = false ;\n
\r\n \n
FCKConfig.EnableMoreFontColors = true ;\r\n FCKConfig.EnableMoreFontColors = true ;\n
FCKConfig.FontColors = \'000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF\' ;\r\n FCKConfig.FontColors = \'000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF\' ;\n
\r\n \n
FCKConfig.FontFormats\t= \'p;h1;h2;h3;h4;h5;h6;pre;address;div\' ;\r\n FCKConfig.FontFormats\t= \'p;h1;h2;h3;h4;h5;h6;pre;address;div\' ;\n
FCKConfig.FontNames\t\t= \'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana\' ;\r\n FCKConfig.FontNames\t\t= \'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana\' ;\n
FCKConfig.FontSizes\t\t= \'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large\' ;\r\n FCKConfig.FontSizes\t\t= \'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large\' ;\n
\r\n \n
FCKConfig.StylesXmlPath\t\t= FCKConfig.EditorPath + \'fckstyles.xml\' ;\r\n FCKConfig.StylesXmlPath\t\t= FCKConfig.EditorPath + \'fckstyles.xml\' ;\n
FCKConfig.TemplatesXmlPath\t= FCKConfig.EditorPath + \'fcktemplates.xml\' ;\r\n FCKConfig.TemplatesXmlPath\t= FCKConfig.EditorPath + \'fcktemplates.xml\' ;\n
\r\n \n
FCKConfig.SpellChecker\t\t\t= \'WSC\' ;\t// \'WSC\' | \'SCAYT\' | \'SpellerPages\' | \'ieSpell\'\r\n FCKConfig.SpellChecker\t\t\t= \'WSC\' ;\t// \'WSC\' | \'SCAYT\' | \'SpellerPages\' | \'ieSpell\'\n
FCKConfig.IeSpellDownloadUrl\t= \'http://www.iespell.com/download.php\' ;\r\n FCKConfig.IeSpellDownloadUrl\t= \'http://www.iespell.com/download.php\' ;\n
FCKConfig.SpellerPagesServerScript = \'server-scripts/spellchecker.php\' ;\t// Available extension: .php .cfm .pl\r\n FCKConfig.SpellerPagesServerScript = \'server-scripts/spellchecker.php\' ;\t// Available extension: .php .cfm .pl\n
FCKConfig.FirefoxSpellChecker\t= false ;\r\n FCKConfig.FirefoxSpellChecker\t= false ;\n
\r\n \n
FCKConfig.MaxUndoLevels = 15 ;\r\n FCKConfig.MaxUndoLevels = 15 ;\n
\r\n \n
FCKConfig.DisableObjectResizing = false ;\r\n FCKConfig.DisableObjectResizing = false ;\n
FCKConfig.DisableFFTableHandles = true ;\r\n FCKConfig.DisableFFTableHandles = true ;\n
\r\n \n
FCKConfig.LinkDlgHideTarget\t\t= false ;\r\n FCKConfig.LinkDlgHideTarget\t\t= false ;\n
FCKConfig.LinkDlgHideAdvanced\t= false ;\r\n FCKConfig.LinkDlgHideAdvanced\t= false ;\n
\r\n \n
FCKConfig.ImageDlgHideLink\t\t= false ;\r\n FCKConfig.ImageDlgHideLink\t\t= false ;\n
FCKConfig.ImageDlgHideAdvanced\t= false ;\r\n FCKConfig.ImageDlgHideAdvanced\t= false ;\n
\r\n \n
FCKConfig.FlashDlgHideAdvanced\t= false ;\r\n FCKConfig.FlashDlgHideAdvanced\t= false ;\n
\r\n \n
FCKConfig.ProtectedTags = \'\' ;\r\n FCKConfig.ProtectedTags = \'\' ;\n
\r\n \n
// This will be applied to the body element of the editor\r\n // This will be applied to the body element of the editor\n
FCKConfig.BodyId = \'\' ;\r\n FCKConfig.BodyId = \'\' ;\n
FCKConfig.BodyClass = \'\' ;\r\n FCKConfig.BodyClass = \'\' ;\n
\r\n \n
FCKConfig.DefaultStyleLabel = \'\' ;\r\n FCKConfig.DefaultStyleLabel = \'\' ;\n
FCKConfig.DefaultFontFormatLabel = \'\' ;\r\n FCKConfig.DefaultFontFormatLabel = \'\' ;\n
FCKConfig.DefaultFontLabel = \'\' ;\r\n FCKConfig.DefaultFontLabel = \'\' ;\n
FCKConfig.DefaultFontSizeLabel = \'\' ;\r\n FCKConfig.DefaultFontSizeLabel = \'\' ;\n
\r\n \n
FCKConfig.DefaultLinkTarget = \'\' ;\r\n FCKConfig.DefaultLinkTarget = \'\' ;\n
\r\n \n
// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word\r\n // The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word\n
FCKConfig.CleanWordKeepsStructure = false ;\r\n FCKConfig.CleanWordKeepsStructure = false ;\n
\r\n \n
// Only inline elements are valid.\r\n // Only inline elements are valid.\n
FCKConfig.RemoveFormatTags = \'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var\' ;\r\n FCKConfig.RemoveFormatTags = \'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var\' ;\n
\r\n \n
// Attributes that will be removed\r\n // Attributes that will be removed\n
FCKConfig.RemoveAttributes = \'class,style,lang,width,height,align,hspace,valign\' ;\r\n FCKConfig.RemoveAttributes = \'class,style,lang,width,height,align,hspace,valign\' ;\n
\r\n \n
FCKConfig.CustomStyles =\r\n FCKConfig.CustomStyles =\n
{\r\n {\n
\t\'Red Title\'\t: { Element : \'h3\', Styles : { \'color\' : \'Red\' } }\r\n \t\'Red Title\'\t: { Element : \'h3\', Styles : { \'color\' : \'Red\' } }\n
};\r\n };\n
\r\n \n
// Do not add, rename or remove styles here. Only apply definition changes.\r\n // Do not add, rename or remove styles here. Only apply definition changes.\n
FCKConfig.CoreStyles =\r\n FCKConfig.CoreStyles =\n
{\r\n {\n
\t// Basic Inline Styles.\r\n \t// Basic Inline Styles.\n
\t\'Bold\'\t\t\t: { Element : \'strong\', Overrides : \'b\' },\r\n \t\'Bold\'\t\t\t: { Element : \'strong\', Overrides : \'b\' },\n
\t\'Italic\'\t\t: { Element : \'em\', Overrides : \'i\' },\r\n \t\'Italic\'\t\t: { Element : \'em\', Overrides : \'i\' },\n
\t\'Underline\'\t\t: { Element : \'u\' },\r\n \t\'Underline\'\t\t: { Element : \'u\' },\n
\t\'StrikeThrough\'\t: { Element : \'strike\' },\r\n \t\'StrikeThrough\'\t: { Element : \'strike\' },\n
\t\'Subscript\'\t\t: { Element : \'sub\' },\r\n \t\'Subscript\'\t\t: { Element : \'sub\' },\n
\t\'Superscript\'\t: { Element : \'sup\' },\r\n \t\'Superscript\'\t: { Element : \'sup\' },\n
\r\n \n
\t// Basic Block Styles (Font Format Combo).\r\n \t// Basic Block Styles (Font Format Combo).\n
\t\'p\'\t\t\t\t: { Element : \'p\' },\r\n \t\'p\'\t\t\t\t: { Element : \'p\' },\n
\t\'div\'\t\t\t: { Element : \'div\' },\r\n \t\'div\'\t\t\t: { Element : \'div\' },\n
\t\'pre\'\t\t\t: { Element : \'pre\' },\r\n \t\'pre\'\t\t\t: { Element : \'pre\' },\n
\t\'address\'\t\t: { Element : \'address\' },\r\n \t\'address\'\t\t: { Element : \'address\' },\n
\t\'h1\'\t\t\t: { Element : \'h1\' },\r\n \t\'h1\'\t\t\t: { Element : \'h1\' },\n
\t\'h2\'\t\t\t: { Element : \'h2\' },\r\n \t\'h2\'\t\t\t: { Element : \'h2\' },\n
\t\'h3\'\t\t\t: { Element : \'h3\' },\r\n \t\'h3\'\t\t\t: { Element : \'h3\' },\n
\t\'h4\'\t\t\t: { Element : \'h4\' },\r\n \t\'h4\'\t\t\t: { Element : \'h4\' },\n
\t\'h5\'\t\t\t: { Element : \'h5\' },\r\n \t\'h5\'\t\t\t: { Element : \'h5\' },\n
\t\'h6\'\t\t\t: { Element : \'h6\' },\r\n \t\'h6\'\t\t\t: { Element : \'h6\' },\n
\r\n \n
\t// Other formatting features.\r\n \t// Other formatting features.\n
\t\'FontFace\' :\r\n \t\'FontFace\' :\n
\t{\r\n \t{\n
\t\tElement\t\t: \'span\',\r\n \t\tElement\t\t: \'span\',\n
\t\tStyles\t\t: { \'font-family\' : \'#("Font")\' },\r\n \t\tStyles\t\t: { \'font-family\' : \'#("Font")\' },\n
\t\tOverrides\t: [ { Element : \'font\', Attributes : { \'face\' : null } } ]\r\n \t\tOverrides\t: [ { Element : \'font\', Attributes : { \'face\' : null } } ]\n
\t},\r\n \t},\n
\r\n \n
\t\'Size\' :\r\n \t\'Size\' :\n
\t{\r\n \t{\n
\t\tElement\t\t: \'span\',\r\n \t\tElement\t\t: \'span\',\n
\t\tStyles\t\t: { \'font-size\' : \'#("Size","fontSize")\' },\r\n \t\tStyles\t\t: { \'font-size\' : \'#("Size","fontSize")\' },\n
\t\tOverrides\t: [ { Element : \'font\', Attributes : { \'size\' : null } } ]\r\n \t\tOverrides\t: [ { Element : \'font\', Attributes : { \'size\' : null } } ]\n
\t},\r\n \t},\n
\r\n \n
\t\'Color\' :\r\n \t\'Color\' :\n
\t{\r\n \t{\n
\t\tElement\t\t: \'span\',\r\n \t\tElement\t\t: \'span\',\n
\t\tStyles\t\t: { \'color\' : \'#("Color","color")\' },\r\n \t\tStyles\t\t: { \'color\' : \'#("Color","color")\' },\n
\t\tOverrides\t: [ { Element : \'font\', Attributes : { \'color\' : null } } ]\r\n \t\tOverrides\t: [ { Element : \'font\', Attributes : { \'color\' : null } } ]\n
\t},\r\n \t},\n
\r\n \n
\t\'BackColor\'\t\t: { Element : \'span\', Styles : { \'background-color\' : \'#("Color","color")\' } },\r\n \t\'BackColor\'\t\t: { Element : \'span\', Styles : { \'background-color\' : \'#("Color","color")\' } },\n
\r\n \n
\t\'SelectionHighlight\' : { Element : \'span\', Styles : { \'background-color\' : \'navy\', \'color\' : \'white\' } }\r\n \t\'SelectionHighlight\' : { Element : \'span\', Styles : { \'background-color\' : \'navy\', \'color\' : \'white\' } }\n
};\r\n };\n
\r\n \n
// The distance of an indentation step.\r\n // The distance of an indentation step.\n
FCKConfig.IndentLength = 40 ;\r\n FCKConfig.IndentLength = 40 ;\n
FCKConfig.IndentUnit = \'px\' ;\r\n FCKConfig.IndentUnit = \'px\' ;\n
\r\n \n
// Alternatively, FCKeditor allows the use of CSS classes for block indentation.\r\n // Alternatively, FCKeditor allows the use of CSS classes for block indentation.\n
// This overrides the IndentLength/IndentUnit settings.\r\n // This overrides the IndentLength/IndentUnit settings.\n
FCKConfig.IndentClasses = [] ;\r\n FCKConfig.IndentClasses = [] ;\n
\r\n \n
// [ Left, Center, Right, Justified ]\r\n // [ Left, Center, Right, Justified ]\n
FCKConfig.JustifyClasses = [] ;\r\n FCKConfig.JustifyClasses = [] ;\n
\r\n \n
// The following value defines which File Browser connector and Quick Upload\r\n // The following value defines which File Browser connector and Quick Upload\n
// "uploader" to use. It is valid for the default implementaion and it is here\r\n // "uploader" to use. It is valid for the default implementaion and it is here\n
// just to make this configuration file cleaner.\r\n // just to make this configuration file cleaner.\n
// It is not possible to change this value using an external file or even\r\n // It is not possible to change this value using an external file or even\n
// inline when creating the editor instance. In that cases you must set the\r\n // inline when creating the editor instance. In that cases you must set the\n
// values of LinkBrowserURL, ImageBrowserURL and so on.\r\n // values of LinkBrowserURL, ImageBrowserURL and so on.\n
// Custom implementations should just ignore it.\r\n // Custom implementations should just ignore it.\n
var _FileBrowserLanguage\t= \'php\' ;\t// asp | aspx | cfm | lasso | perl | php | py\r\n var _FileBrowserLanguage\t= \'php\' ;\t// asp | aspx | cfm | lasso | perl | php | py\n
var _QuickUploadLanguage\t= \'php\' ;\t// asp | aspx | cfm | lasso | perl | php | py\r\n var _QuickUploadLanguage\t= \'php\' ;\t// asp | aspx | cfm | lasso | perl | php | py\n
\r\n \n
// Don\'t care about the following two lines. It just calculates the correct connector\r\n // Don\'t care about the following two lines. It just calculates the correct connector\n
// extension to use for the default File Browser (Perl uses "cgi").\r\n // extension to use for the default File Browser (Perl uses "cgi").\n
var _FileBrowserExtension = _FileBrowserLanguage == \'perl\' ? \'cgi\' : _FileBrowserLanguage ;\r\n var _FileBrowserExtension = _FileBrowserLanguage == \'perl\' ? \'cgi\' : _FileBrowserLanguage ;\n
var _QuickUploadExtension = _QuickUploadLanguage == \'perl\' ? \'cgi\' : _QuickUploadLanguage ;\r\n var _QuickUploadExtension = _QuickUploadLanguage == \'perl\' ? \'cgi\' : _QuickUploadLanguage ;\n
\r\n \n
FCKConfig.LinkBrowser = true ;\r\n FCKConfig.LinkBrowser = true ;\n
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \'filemanager/browser/default/browser.html?Connector=\' + encodeURIComponent( FCKConfig.BasePath + \'filemanager/connectors/\' + _FileBrowserLanguage + \'/connector.\' + _FileBrowserExtension ) ;\r\n FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \'filemanager/browser/default/browser.html?Connector=\' + encodeURIComponent( FCKConfig.BasePath + \'filemanager/connectors/\' + _FileBrowserLanguage + \'/connector.\' + _FileBrowserExtension ) ;\n
FCKConfig.LinkBrowserWindowWidth\t= FCKConfig.ScreenWidth * 0.7 ;\t\t// 70%\r\n FCKConfig.LinkBrowserWindowWidth\t= FCKConfig.ScreenWidth * 0.7 ;\t\t// 70%\n
FCKConfig.LinkBrowserWindowHeight\t= FCKConfig.ScreenHeight * 0.7 ;\t// 70%\r\n FCKConfig.LinkBrowserWindowHeight\t= FCKConfig.ScreenHeight * 0.7 ;\t// 70%\n
\r\n \n
FCKConfig.ImageBrowser = true ;\r\n FCKConfig.ImageBrowser = true ;\n
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \'filemanager/browser/default/browser.html?Type=Image&Connector=\' + encodeURIComponent( FCKConfig.BasePath + \'filemanager/connectors/\' + _FileBrowserLanguage + \'/connector.\' + _FileBrowserExtension ) ;\r\n FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \'filemanager/browser/default/browser.html?Type=Image&Connector=\' + encodeURIComponent( FCKConfig.BasePath + \'filemanager/connectors/\' + _FileBrowserLanguage + \'/connector.\' + _FileBrowserExtension ) ;\n
FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;\t// 70% ;\r\n FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;\t// 70% ;\n
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;\t// 70% ;\r\n FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;\t// 70% ;\n
\r\n \n
FCKConfig.FlashBrowser = true ;\r\n FCKConfig.FlashBrowser = true ;\n
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \'filemanager/browser/default/browser.html?Type=Flash&Connector=\' + encodeURIComponent( FCKConfig.BasePath + \'filemanager/connectors/\' + _FileBrowserLanguage + \'/connector.\' + _FileBrowserExtension ) ;\r\n FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \'filemanager/browser/default/browser.html?Type=Flash&Connector=\' + encodeURIComponent( FCKConfig.BasePath + \'filemanager/connectors/\' + _FileBrowserLanguage + \'/connector.\' + _FileBrowserExtension ) ;\n
FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;\t//70% ;\r\n FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;\t//70% ;\n
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;\t//70% ;\r\n FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;\t//70% ;\n
\r\n \n
FCKConfig.LinkUpload = true ;\r\n FCKConfig.LinkUpload = true ;\n
FCKConfig.LinkUploadURL = FCKConfig.BasePath + \'filemanager/connectors/\' + _QuickUploadLanguage + \'/upload.\' + _QuickUploadExtension ;\r\n FCKConfig.LinkUploadURL = FCKConfig.BasePath + \'filemanager/connectors/\' + _QuickUploadLanguage + \'/upload.\' + _QuickUploadExtension ;\n
FCKConfig.LinkUploadAllowedExtensions\t= ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ;\t\t\t// empty for all\r\n FCKConfig.LinkUploadAllowedExtensions\t= ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ;\t\t\t// empty for all\n
FCKConfig.LinkUploadDeniedExtensions\t= "" ;\t// empty for no one\r\n FCKConfig.LinkUploadDeniedExtensions\t= "" ;\t// empty for no one\n
\r\n \n
FCKConfig.ImageUpload = true ;\r\n FCKConfig.ImageUpload = true ;\n
FCKConfig.ImageUploadURL = FCKConfig.BasePath + \'filemanager/connectors/\' + _QuickUploadLanguage + \'/upload.\' + _QuickUploadExtension + \'?Type=Image\' ;\r\n FCKConfig.ImageUploadURL = FCKConfig.BasePath + \'filemanager/connectors/\' + _QuickUploadLanguage + \'/upload.\' + _QuickUploadExtension + \'?Type=Image\' ;\n
FCKConfig.ImageUploadAllowedExtensions\t= ".(jpg|gif|jpeg|png|bmp)$" ;\t\t// empty for all\r\n FCKConfig.ImageUploadAllowedExtensions\t= ".(jpg|gif|jpeg|png|bmp)$" ;\t\t// empty for all\n
FCKConfig.ImageUploadDeniedExtensions\t= "" ;\t\t\t\t\t\t\t// empty for no one\r\n FCKConfig.ImageUploadDeniedExtensions\t= "" ;\t\t\t\t\t\t\t// empty for no one\n
\r\n \n
FCKConfig.FlashUpload = true ;\r\n FCKConfig.FlashUpload = true ;\n
FCKConfig.FlashUploadURL = FCKConfig.BasePath + \'filemanager/connectors/\' + _QuickUploadLanguage + \'/upload.\' + _QuickUploadExtension + \'?Type=Flash\' ;\r\n FCKConfig.FlashUploadURL = FCKConfig.BasePath + \'filemanager/connectors/\' + _QuickUploadLanguage + \'/upload.\' + _QuickUploadExtension + \'?Type=Flash\' ;\n
FCKConfig.FlashUploadAllowedExtensions\t= ".(swf|flv)$" ;\t\t// empty for all\r\n FCKConfig.FlashUploadAllowedExtensions\t= ".(swf|flv)$" ;\t\t// empty for all\n
FCKConfig.FlashUploadDeniedExtensions\t= "" ;\t\t\t\t\t// empty for no one\r\n FCKConfig.FlashUploadDeniedExtensions\t= "" ;\t\t\t\t\t// empty for no one\n
\r\n \n
FCKConfig.SmileyPath\t= FCKConfig.BasePath + \'images/smiley/msn/\' ;\r\n FCKConfig.SmileyPath\t= FCKConfig.BasePath + \'images/smiley/msn/\' ;\n
FCKConfig.SmileyImages\t= [\'regular_smile.gif\',\'sad_smile.gif\',\'wink_smile.gif\',\'teeth_smile.gif\',\'confused_smile.gif\',\'tounge_smile.gif\',\'embaressed_smile.gif\',\'omg_smile.gif\',\'whatchutalkingabout_smile.gif\',\'angry_smile.gif\',\'angel_smile.gif\',\'shades_smile.gif\',\'devil_smile.gif\',\'cry_smile.gif\',\'lightbulb.gif\',\'thumbs_down.gif\',\'thumbs_up.gif\',\'heart.gif\',\'broken_heart.gif\',\'kiss.gif\',\'envelope.gif\'] ;\r\n FCKConfig.SmileyImages\t= [\'regular_smile.gif\',\'sad_smile.gif\',\'wink_smile.gif\',\'teeth_smile.gif\',\'confused_smile.gif\',\'tounge_smile.gif\',\'embaressed_smile.gif\',\'omg_smile.gif\',\'whatchutalkingabout_smile.gif\',\'angry_smile.gif\',\'angel_smile.gif\',\'shades_smile.gif\',\'devil_smile.gif\',\'cry_smile.gif\',\'lightbulb.gif\',\'thumbs_down.gif\',\'thumbs_up.gif\',\'heart.gif\',\'broken_heart.gif\',\'kiss.gif\',\'envelope.gif\'] ;\n
FCKConfig.SmileyColumns = 8 ;\r\n FCKConfig.SmileyColumns = 8 ;\n
FCKConfig.SmileyWindowWidth\t\t= 320 ;\r\n FCKConfig.SmileyWindowWidth\t\t= 320 ;\n
FCKConfig.SmileyWindowHeight\t= 210 ;\r\n FCKConfig.SmileyWindowHeight\t= 210 ;\n
\r\n \n
FCKConfig.BackgroundBlockerColor = \'#ffffff\' ;\r\n FCKConfig.BackgroundBlockerColor = \'#ffffff\' ;\n
FCKConfig.BackgroundBlockerOpacity = 0.50 ;\r\n FCKConfig.BackgroundBlockerOpacity = 0.50 ;\n
\r\n \n
FCKConfig.MsWebBrowserControlCompat = false ;\r\n FCKConfig.MsWebBrowserControlCompat = false ;\n
\r\n \n
FCKConfig.PreventSubmitHandler = false ;\r\n FCKConfig.PreventSubmitHandler = false ;\n
\r\n \n
// toolbar set for erp5_web\r\n // toolbar set for erp5_web\n
FCKConfig.ToolbarSets["ERP5WebZopeCmf"] = [\r\n FCKConfig.ToolbarSets["ERP5WebZopeCmf"] = [\n
[\'Source\',\'-\',\'Templates\'],\r\n [\'Source\',\'-\',\'Templates\'],\n
[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteWord\',\'-\'],\r\n [\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteWord\',\'-\'],\n
[\'Undo\',\'Redo\',\'-\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],\r\n [\'Undo\',\'Redo\',\'-\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],\n
[\'Bold\',\'Italic\',\'Underline\',\'StrikeThrough\',\'-\',\'Subscript\',\'Superscript\'],\r\n [\'Bold\',\'Italic\',\'Underline\',\'StrikeThrough\',\'-\',\'Subscript\',\'Superscript\'],\n
[\'OrderedList\',\'UnorderedList\',\'-\',\'Outdent\',\'Indent\'],\r\n [\'OrderedList\',\'UnorderedList\',\'-\',\'Outdent\',\'Indent\'],\n
[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyFull\'],\r\n [\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyFull\'],\n
[\'Link\',\'Unlink\',\'Anchor\'],\r\n [\'Link\',\'Unlink\',\'Anchor\'],\n
[\'Image\',\'Table\',\'Rule\',\'SpecialChar\'],\r\n [\'Image\',\'Table\',\'Rule\',\'SpecialChar\'],\n
[\'TextColor\',\'BGColor\'],\r\n [\'TextColor\',\'BGColor\'],\n
\'/\',\r\n \'/\',\n
[\'Style\',\'FontFormat\',\'FontName\',\'FontSize\'],\r\n [\'Style\',\'FontFormat\',\'FontName\',\'FontSize\']\n
];\r\n ];\n
]]></string> </value> ]]></string> </value>
...@@ -376,7 +376,7 @@ FCKConfig.ToolbarSets["ERP5WebZopeCmf"] = [\r\n ...@@ -376,7 +376,7 @@ FCKConfig.ToolbarSets["ERP5WebZopeCmf"] = [\r\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>14538</int> </value> <value> <int>14197</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44338348.56</string> </value> <value> <string>ts68196955.18</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -26,336 +26,337 @@ ...@@ -26,336 +26,337 @@
<key> <string>data</string> </key> <key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
/*\r\n /*\n
* FCKeditor - The text editor for Internet - http://www.fckeditor.net\r\n * FCKeditor - The text editor for Internet - http://www.fckeditor.net\n
* Copyright (C) 2003-2010 Frederico Caldeira Knabben\r\n * Copyright (C) 2003-2010 Frederico Caldeira Knabben\n
*\r\n *\n
* == BEGIN LICENSE ==\r\n * == BEGIN LICENSE ==\n
*\r\n *\n
* Licensed under the terms of any of the following licenses at your\r\n * Licensed under the terms of any of the following licenses at your\n
* choice:\r\n * choice:\n
*\r\n *\n
* - GNU General Public License Version 2 or later (the "GPL")\r\n * - GNU General Public License Version 2 or later (the "GPL")\n
* http://www.gnu.org/licenses/gpl.html\r\n * http://www.gnu.org/licenses/gpl.html\n
*\r\n *\n
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r\n * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\n
* http://www.gnu.org/licenses/lgpl.html\r\n * http://www.gnu.org/licenses/lgpl.html\n
*\r\n *\n
* - Mozilla Public License Version 1.1 or later (the "MPL")\r\n * - Mozilla Public License Version 1.1 or later (the "MPL")\n
* http://www.mozilla.org/MPL/MPL-1.1.html\r\n * http://www.mozilla.org/MPL/MPL-1.1.html\n
*\r\n *\n
* == END LICENSE ==\r\n * == END LICENSE ==\n
*\r\n *\n
* This is the integration file for JavaScript.\r\n * This is the integration file for JavaScript.\n
*\r\n *\n
* It defines the FCKeditor class that can be used to create editor\r\n * It defines the FCKeditor class that can be used to create editor\n
* instances in a HTML page in the client side. For server side\r\n * instances in a HTML page in the client side. For server side\n
* operations, use the specific integration system.\r\n * operations, use the specific integration system.\n
*/\r\n */\n
\r\n \n
// FCKeditor Class\r\n // FCKeditor Class\n
var FCKeditor = function( instanceName, width, height, toolbarSet, value )\r\n var FCKeditor = function( instanceName, width, height, toolbarSet, value )\n
{\r\n {\n
\t// Properties\r\n \t// Properties\n
\tthis.InstanceName\t= instanceName ;\r\n \tthis.InstanceName\t= instanceName ;\n
\tthis.Width\t\t\t= width\t\t\t|| \'100%\' ;\r\n \tthis.Width\t\t\t= width\t\t\t|| \'100%\' ;\n
\tthis.Height\t\t\t= height\t\t|| \'200\' ;\r\n \tthis.Height\t\t\t= height\t\t|| \'200\' ;\n
\tthis.ToolbarSet\t\t= toolbarSet\t|| \'Default\' ;\r\n \tthis.ToolbarSet\t\t= toolbarSet\t|| \'Default\' ;\n
\tthis.Value\t\t\t= value\t\t\t|| \'\' ;\r\n \tthis.Value\t\t\t= value\t\t\t|| \'\' ;\n
\tthis.BasePath\t\t= FCKeditor.BasePath ;\r\n \tthis.BasePath\t\t= FCKeditor.BasePath ;\n
\tthis.CheckBrowser\t= true ;\r\n \tthis.CheckBrowser\t= true ;\n
\tthis.DisplayErrors\t= true ;\r\n \tthis.DisplayErrors\t= true ;\n
\r\n \n
\tthis.Config\t\t\t= new Object() ;\r\n \tthis.Config\t\t\t= new Object() ;\n
\r\n \n
\t// Events\r\n \t// Events\n
\tthis.OnError\t\t= null ;\t// function( source, errorNumber, errorDescription )\r\n \tthis.OnError\t\t= null ;\t// function( source, errorNumber, errorDescription )\n
}\r\n };\n
\r\n \n
/**\r\n /**\n
* This is the default BasePath used by all editor instances.\r\n * This is the default BasePath used by all editor instances.\n
*/\r\n */\n
FCKeditor.BasePath = \'/fckeditor/\' ;\r\n FCKeditor.BasePath = \'/fckeditor/\' ;\n
\r\n \n
/**\r\n /**\n
* The minimum height used when replacing textareas.\r\n * The minimum height used when replacing textareas.\n
*/\r\n */\n
FCKeditor.MinHeight = 200 ;\r\n FCKeditor.MinHeight = 200 ;\n
\r\n \n
/**\r\n /**\n
* The minimum width used when replacing textareas.\r\n * The minimum width used when replacing textareas.\n
*/\r\n */\n
FCKeditor.MinWidth = 750 ;\r\n FCKeditor.MinWidth = 750 ;\n
\r\n \n
FCKeditor.prototype.Version\t\t\t= \'2.6.8\' ;\r\n FCKeditor.prototype.Version\t\t\t= \'2.6.8\' ;\n
FCKeditor.prototype.VersionBuild\t= \'25427\' ;\r\n FCKeditor.prototype.VersionBuild\t= \'25427\' ;\n
\r\n \n
FCKeditor.prototype.Create = function()\r\n FCKeditor.prototype.Create = function()\n
{\r\n {\n
\tdocument.write( this.CreateHtml() ) ;\r\n \tdocument.write( this.CreateHtml() ) ;\n
}\r\n };\n
\r\n \n
FCKeditor.prototype.CreateHtml = function()\r\n FCKeditor.prototype.CreateHtml = function()\n
{\r\n {\n
\t// Check for errors\r\n \t// Check for errors\n
\tif ( !this.InstanceName || this.InstanceName.length == 0 )\r\n \tif ( !this.InstanceName || this.InstanceName.length === 0 )\n
\t{\r\n \t{\n
\t\tthis._ThrowError( 701, \'You must specify an instance name.\' ) ;\r\n \t\tthis._ThrowError( 701, \'You must specify an instance name.\' ) ;\n
\t\treturn \'\' ;\r\n \t\treturn \'\' ;\n
\t}\r\n \t}\n
\r\n \n
\tvar sHtml = \'\' ;\r\n \tvar sHtml = \'\' ;\n
\r\n \n
\tif ( !this.CheckBrowser || this._IsCompatibleBrowser() )\r\n \tif ( !this.CheckBrowser || this._IsCompatibleBrowser() )\n
\t{\r\n \t{\n
\t\tsHtml += \'<input type="hidden" id="\' + this.InstanceName + \'" name="\' + this.InstanceName + \'" value="\' + this._HTMLEncode( this.Value ) + \'" style="display:none" />\' ;\r\n \t\tsHtml += \'<input type="hidden" id="\' + this.InstanceName + \'" name="\' + this.InstanceName + \'" value="\' + this._HTMLEncode( this.Value ) + \'" style="display:none" />\' ;\n
\t\tsHtml += this._GetConfigHtml() ;\r\n \t\tsHtml += this._GetConfigHtml() ;\n
\t\tsHtml += this._GetIFrameHtml() ;\r\n \t\tsHtml += this._GetIFrameHtml() ;\n
\t}\r\n \t}\n
\telse\r\n \telse\n
\t{\r\n \t{\n
\t\tvar sWidth = this.Width.toString().indexOf(\'%\') > 0 ? this.Width : this.Width + \'px\' ;\r\n \t\tvar sWidth = this.Width.toString().indexOf(\'%\') > 0 ? this.Width : this.Width + \'px\' ;\n
\t\tvar sHeight = this.Height.toString().indexOf(\'%\') > 0 ? this.Height : this.Height + \'px\' ;\r\n \t\tvar sHeight = this.Height.toString().indexOf(\'%\') > 0 ? this.Height : this.Height + \'px\' ;\n
\r\n \n
\t\tsHtml += \'<textarea name="\' + this.InstanceName +\r\n \t\tsHtml += \'<textarea name="\' + this.InstanceName +\n
\t\t\t\'" rows="4" cols="40" style="width:\' + sWidth +\r\n \t\t\t\'" rows="4" cols="40" style="width:\' + sWidth +\n
\t\t\t\';height:\' + sHeight ;\r\n \t\t\t\';height:\' + sHeight ;\n
\r\n \n
\t\tif ( this.TabIndex )\r\n \t\tif ( this.TabIndex )\n
\t\t\tsHtml += \'" tabindex="\' + this.TabIndex ;\r\n \t\t\tsHtml += \'" tabindex="\' + this.TabIndex ;\n
\r\n \n
\t\tsHtml += \'">\' +\r\n \t\tsHtml += \'">\' +\n
\t\t\tthis._HTMLEncode( this.Value ) +\r\n \t\t\tthis._HTMLEncode( this.Value ) +\n
\t\t\t\'<\\/textarea>\' ;\r\n \t\t\t\'<\\/textarea>\' ;\n
\t}\r\n \t}\n
\r\n \n
\treturn sHtml ;\r\n \treturn sHtml ;\n
}\r\n };\n
\r\n \n
FCKeditor.prototype.ReplaceTextarea = function()\r\n FCKeditor.prototype.ReplaceTextarea = function()\n
{\r\n {\n
\tif ( document.getElementById( this.InstanceName + \'___Frame\' ) )\r\n \tif ( document.getElementById( this.InstanceName + \'___Frame\' ) )\n
\t\treturn ;\r\n \t\treturn ;\n
\tif ( !this.CheckBrowser || this._IsCompatibleBrowser() )\r\n \tif ( !this.CheckBrowser || this._IsCompatibleBrowser() )\n
\t{\r\n \t{\n
\t\t// We must check the elements firstly using the Id and then the name.\r\n \t\t// We must check the elements firstly using the Id and then the name.\n
\t\tvar oTextarea = document.getElementById( this.InstanceName ) ;\r\n \t\tvar oTextarea = document.getElementById( this.InstanceName ) ;\n
\t\tvar colElementsByName = document.getElementsByName( this.InstanceName ) ;\r\n \t\tvar colElementsByName = document.getElementsByName( this.InstanceName ) ;\n
\t\tvar i = 0;\r\n \t\tvar i = 0;\n
\t\twhile ( oTextarea || i == 0 )\r\n \t\twhile ( oTextarea || i === 0 )\n
\t\t{\r\n \t\t{\n
\t\t\tif ( oTextarea && oTextarea.tagName.toLowerCase() == \'textarea\' )\r\n \t\t\tif ( oTextarea && oTextarea.tagName.toLowerCase() == \'textarea\' )\n
\t\t\t\tbreak ;\r\n \t\t\t\tbreak ;\n
\t\t\toTextarea = colElementsByName[i++] ;\r\n i = i+1;\n
\t\t}\r\n \t\t\toTextarea = colElementsByName[i] ;\n
\r\n \t\t}\n
\t\tif ( !oTextarea )\r\n \n
\t\t{\r\n \t\tif ( !oTextarea )\n
\t\t\talert( \'Error: The TEXTAREA with id or name set to "\' + this.InstanceName + \'" was not found\' ) ;\r\n \t\t{\n
\t\t\treturn ;\r\n \t\t\talert( \'Error: The TEXTAREA with id or name set to "\' + this.InstanceName + \'" was not found\' ) ;\n
\t\t}\r\n \t\t\treturn ;\n
\r\n \t\t}\n
\t\toTextarea.style.display = \'none\' ;\r\n \n
\r\n \t\toTextarea.style.display = \'none\' ;\n
\t\tif ( oTextarea.tabIndex )\r\n \n
\t\t\tthis.TabIndex = oTextarea.tabIndex ;\r\n \t\tif ( oTextarea.tabIndex )\n
\r\n \t\t\tthis.TabIndex = oTextarea.tabIndex ;\n
\t\tthis._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ;\r\n \n
\t\tthis._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ;\r\n \t\tthis._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ;\n
\t}\r\n \t\tthis._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ;\n
}\r\n \t}\n
\r\n };\n
FCKeditor.prototype._InsertHtmlBefore = function( html, element )\r\n \n
{\r\n FCKeditor.prototype._InsertHtmlBefore = function( html, element )\n
\tif ( element.insertAdjacentHTML )\t// IE\r\n {\n
\t\telement.insertAdjacentHTML( \'beforeBegin\', html ) ;\r\n \tif ( element.insertAdjacentHTML )\t// IE\n
\telse\t\t\t\t\t\t\t\t// Gecko\r\n \t\telement.insertAdjacentHTML( \'beforeBegin\', html ) ;\n
\t{\r\n \telse\t\t\t\t\t\t\t\t// Gecko\n
\t\tvar oRange = document.createRange() ;\r\n \t{\n
\t\toRange.setStartBefore( element ) ;\r\n \t\tvar oRange = document.createRange() ;\n
\t\tvar oFragment = oRange.createContextualFragment( html );\r\n \t\toRange.setStartBefore( element ) ;\n
\t\telement.parentNode.insertBefore( oFragment, element ) ;\r\n \t\tvar oFragment = oRange.createContextualFragment( html );\n
\t}\r\n \t\telement.parentNode.insertBefore( oFragment, element ) ;\n
}\r\n \t}\n
\r\n };\n
FCKeditor.prototype._GetConfigHtml = function()\r\n \n
{\r\n FCKeditor.prototype._GetConfigHtml = function()\n
\tvar sConfig = \'\' ;\r\n {\n
\tfor ( var o in this.Config )\r\n \tvar sConfig = \'\' ;\n
\t{\r\n \tfor ( var o in this.Config )\n
\t\tif ( sConfig.length > 0 ) sConfig += \'&amp;\' ;\r\n \t{\n
\t\tsConfig += encodeURIComponent( o ) + \'=\' + encodeURIComponent( this.Config[o] ) ;\r\n \t\tif ( sConfig.length > 0 ) sConfig += \'&amp;\' ;\n
\t}\r\n \t\tsConfig += encodeURIComponent( o ) + \'=\' + encodeURIComponent( this.Config[o] ) ;\n
\r\n \t}\n
\treturn \'<input type="hidden" id="\' + this.InstanceName + \'___Config" value="\' + sConfig + \'" style="display:none" />\' ;\r\n \n
}\r\n \treturn \'<input type="hidden" id="\' + this.InstanceName + \'___Config" value="\' + sConfig + \'" style="display:none" />\' ;\n
\r\n };\n
FCKeditor.prototype._GetIFrameHtml = function()\r\n \n
{\r\n FCKeditor.prototype._GetIFrameHtml = function()\n
\tvar sFile = \'fckeditor.html\' ;\r\n {\n
\r\n \tvar sFile = \'fckeditor.html\' ;\n
\ttry\r\n \n
\t{\r\n \ttry\n
\t\tif ( (/fcksource=true/i).test( window.top.location.search ) )\r\n \t{\n
\t\t\tsFile = \'fckeditor.original.html\' ;\r\n \t\tif ( (/fcksource=true/i).test( window.top.location.search ) )\n
\t}\r\n \t\t\tsFile = \'fckeditor.original.html\' ;\n
\tcatch (e) { /* Ignore it. Much probably we are inside a FRAME where the "top" is in another domain (security error). */ }\r\n \t}\n
\r\n \tcatch (e) { /* Ignore it. Much probably we are inside a FRAME where the "top" is in another domain (security error). */ }\n
\tvar sLink = this.BasePath + \'editor/\' + sFile + \'?InstanceName=\' + encodeURIComponent( this.InstanceName ) ;\r\n \n
\tif (this.ToolbarSet)\r\n \tvar sLink = this.BasePath + \'editor/\' + sFile + \'?InstanceName=\' + encodeURIComponent( this.InstanceName ) ;\n
\t\tsLink += \'&amp;Toolbar=\' + this.ToolbarSet ;\r\n \tif (this.ToolbarSet)\n
\r\n \t\tsLink += \'&amp;Toolbar=\' + this.ToolbarSet ;\n
\tvar html = \'<iframe id="\' + this.InstanceName +\r\n \n
\t\t\'___Frame" src="\' + sLink +\r\n \tvar html = \'<iframe id="\' + this.InstanceName +\n
\t\t\'" width="\' + this.Width +\r\n \t\t\'___Frame" src="\' + sLink +\n
\t\t\'" height="\' + this.Height ;\r\n \t\t\'" width="\' + this.Width +\n
\r\n \t\t\'" height="\' + this.Height ;\n
\tif ( this.TabIndex )\r\n \n
\t\thtml += \'" tabindex="\' + this.TabIndex ;\r\n \tif ( this.TabIndex )\n
\r\n \t\thtml += \'" tabindex="\' + this.TabIndex ;\n
\thtml += \'" frameborder="0" scrolling="no"></iframe>\' ;\r\n \n
\r\n \thtml += \'" frameborder="0" scrolling="no"></iframe>\' ;\n
\treturn html ;\r\n \n
}\r\n \treturn html ;\n
\r\n };\n
FCKeditor.prototype._IsCompatibleBrowser = function()\r\n \n
{\r\n FCKeditor.prototype._IsCompatibleBrowser = function()\n
\treturn FCKeditor_IsCompatibleBrowser() ;\r\n {\n
}\r\n \treturn FCKeditor_IsCompatibleBrowser() ;\n
\r\n };\n
FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription )\r\n \n
{\r\n FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription )\n
\tthis.ErrorNumber\t\t= errorNumber ;\r\n {\n
\tthis.ErrorDescription\t= errorDescription ;\r\n \tthis.ErrorNumber\t\t= errorNumber ;\n
\r\n \tthis.ErrorDescription\t= errorDescription ;\n
\tif ( this.DisplayErrors )\r\n \n
\t{\r\n \tif ( this.DisplayErrors )\n
\t\tdocument.write( \'<div style="COLOR: #ff0000">\' ) ;\r\n \t{\n
\t\tdocument.write( \'[ FCKeditor Error \' + this.ErrorNumber + \': \' + this.ErrorDescription + \' ]\' ) ;\r\n \t\tdocument.write( \'<div style="COLOR: #ff0000">\' ) ;\n
\t\tdocument.write( \'</div>\' ) ;\r\n \t\tdocument.write( \'[ FCKeditor Error \' + this.ErrorNumber + \': \' + this.ErrorDescription + \' ]\' ) ;\n
\t}\r\n \t\tdocument.write( \'</div>\' ) ;\n
\r\n \t}\n
\tif ( typeof( this.OnError ) == \'function\' )\r\n \n
\t\tthis.OnError( this, errorNumber, errorDescription ) ;\r\n \tif ( typeof( this.OnError ) == \'function\' )\n
}\r\n \t\tthis.OnError( this, errorNumber, errorDescription ) ;\n
\r\n };\n
FCKeditor.prototype._HTMLEncode = function( text )\r\n \n
{\r\n FCKeditor.prototype._HTMLEncode = function( text )\n
\tif ( typeof( text ) != "string" )\r\n {\n
\t\ttext = text.toString() ;\r\n \tif ( typeof( text ) != "string" )\n
\r\n \t\ttext = text.toString() ;\n
\ttext = text.replace(\r\n \n
\t\t/&/g, "&amp;").replace(\r\n \ttext = text.replace(\n
\t\t/"/g, "&quot;").replace(\r\n \t\t/&/g, "&amp;").replace(\n
\t\t/</g, "&lt;").replace(\r\n \t\t/"/g, "&quot;").replace(\n
\t\t/>/g, "&gt;") ;\r\n \t\t/</g, "&lt;").replace(\n
\r\n \t\t/>/g, "&gt;") ;\n
\treturn text ;\r\n \n
}\r\n \treturn text ;\n
\r\n }\n
;(function()\r\n \n
{\r\n ;(function()\n
\tvar textareaToEditor = function( textarea )\r\n {\n
\t{\r\n \tvar textareaToEditor = function( textarea )\n
\t\tvar editor = new FCKeditor( textarea.name ) ;\r\n \t{\n
\r\n \t\tvar editor = new FCKeditor( textarea.name ) ;\n
\t\teditor.Width = Math.max( textarea.offsetWidth, FCKeditor.MinWidth ) ;\r\n \n
\t\teditor.Height = Math.max( textarea.offsetHeight, FCKeditor.MinHeight ) ;\r\n \t\teditor.Width = Math.max( textarea.offsetWidth, FCKeditor.MinWidth ) ;\n
\r\n \t\teditor.Height = Math.max( textarea.offsetHeight, FCKeditor.MinHeight ) ;\n
\t\treturn editor ;\r\n \n
\t}\r\n \t\treturn editor ;\n
\r\n \t};\n
\t/**\r\n \n
\t * Replace all <textarea> elements available in the document with FCKeditor\r\n \t/**\n
\t * instances.\r\n \t * Replace all <textarea> elements available in the document with FCKeditor\n
\t *\r\n \t * instances.\n
\t *\t// Replace all <textarea> elements in the page.\r\n \t *\n
\t *\tFCKeditor.ReplaceAllTextareas() ;\r\n \t *\t// Replace all <textarea> elements in the page.\n
\t *\r\n \t *\tFCKeditor.ReplaceAllTextareas() ;\n
\t *\t// Replace all <textarea class="myClassName"> elements in the page.\r\n \t *\n
\t *\tFCKeditor.ReplaceAllTextareas( \'myClassName\' ) ;\r\n \t *\t// Replace all <textarea class="myClassName"> elements in the page.\n
\t *\r\n \t *\tFCKeditor.ReplaceAllTextareas( \'myClassName\' ) ;\n
\t *\t// Selectively replace <textarea> elements, based on custom assertions.\r\n \t *\n
\t *\tFCKeditor.ReplaceAllTextareas( function( textarea, editor )\r\n \t *\t// Selectively replace <textarea> elements, based on custom assertions.\n
\t *\t\t{\r\n \t *\tFCKeditor.ReplaceAllTextareas( function( textarea, editor )\n
\t *\t\t\t// Custom code to evaluate the replace, returning false if it\r\n \t *\t\t{\n
\t *\t\t\t// must not be done.\r\n \t *\t\t\t// Custom code to evaluate the replace, returning false if it\n
\t *\t\t\t// It also passes the "editor" parameter, so the developer can\r\n \t *\t\t\t// must not be done.\n
\t *\t\t\t// customize the instance.\r\n \t *\t\t\t// It also passes the "editor" parameter, so the developer can\n
\t *\t\t} ) ;\r\n \t *\t\t\t// customize the instance.\n
\t */\r\n \t *\t\t} ) ;\n
\tFCKeditor.ReplaceAllTextareas = function()\r\n \t */\n
\t{\r\n \tFCKeditor.ReplaceAllTextareas = function()\n
\t\tvar textareas = document.getElementsByTagName( \'textarea\' ) ;\r\n \t{\n
\r\n \t\tvar textareas = document.getElementsByTagName( \'textarea\' ) ;\n
\t\tfor ( var i = 0 ; i < textareas.length ; i++ )\r\n \n
\t\t{\r\n \t\tfor ( var i = 0 ; i < textareas.length ; i++ )\n
\t\t\tvar editor = null ;\r\n \t\t{\n
\t\t\tvar textarea = textareas[i] ;\r\n \t\t\tvar editor = null ;\n
\t\t\tvar name = textarea.name ;\r\n \t\t\tvar textarea = textareas[i] ;\n
\r\n \t\t\tvar name = textarea.name ;\n
\t\t\t// The "name" attribute must exist.\r\n \n
\t\t\tif ( !name || name.length == 0 )\r\n \t\t\t// The "name" attribute must exist.\n
\t\t\t\tcontinue ;\r\n \t\t\tif ( !name || name.length === 0 )\n
\r\n \t\t\t\tcontinue ;\n
\t\t\tif ( typeof arguments[0] == \'string\' )\r\n \n
\t\t\t{\r\n \t\t\tif ( typeof arguments[0] == \'string\' )\n
\t\t\t\t// The textarea class name could be passed as the function\r\n \t\t\t{\n
\t\t\t\t// parameter.\r\n \t\t\t\t// The textarea class name could be passed as the function\n
\r\n \t\t\t\t// parameter.\n
\t\t\t\tvar classRegex = new RegExp( \'(?:^| )\' + arguments[0] + \'(?:$| )\' ) ;\r\n \n
\r\n \t\t\t\tvar classRegex = new RegExp( \'(?:^| )\' + arguments[0] + \'(?:$| )\' ) ;\n
\t\t\t\tif ( !classRegex.test( textarea.className ) )\r\n \n
\t\t\t\t\tcontinue ;\r\n \t\t\t\tif ( !classRegex.test( textarea.className ) )\n
\t\t\t}\r\n \t\t\t\t\tcontinue ;\n
\t\t\telse if ( typeof arguments[0] == \'function\' )\r\n \t\t\t}\n
\t\t\t{\r\n \t\t\telse if ( typeof arguments[0] == \'function\' )\n
\t\t\t\t// An assertion function could be passed as the function parameter.\r\n \t\t\t{\n
\t\t\t\t// It must explicitly return "false" to ignore a specific <textarea>.\r\n \t\t\t\t// An assertion function could be passed as the function parameter.\n
\t\t\t\teditor = textareaToEditor( textarea ) ;\r\n \t\t\t\t// It must explicitly return "false" to ignore a specific <textarea>.\n
\t\t\t\tif ( arguments[0]( textarea, editor ) === false )\r\n \t\t\t\teditor = textareaToEditor( textarea ) ;\n
\t\t\t\t\tcontinue ;\r\n \t\t\t\tif ( arguments[0]( textarea, editor ) === false )\n
\t\t\t}\r\n \t\t\t\t\tcontinue ;\n
\r\n \t\t\t}\n
\t\t\tif ( !editor )\r\n \n
\t\t\t\teditor = textareaToEditor( textarea ) ;\r\n \t\t\tif ( !editor )\n
\r\n \t\t\t\teditor = textareaToEditor( textarea ) ;\n
\t\t\teditor.ReplaceTextarea() ;\r\n \n
\t\t}\r\n \t\t\teditor.ReplaceTextarea() ;\n
\t}\r\n \t\t}\n
})() ;\r\n \t};\n
\r\n })() ;\n
function FCKeditor_IsCompatibleBrowser()\r\n \n
{\r\n function FCKeditor_IsCompatibleBrowser()\n
\tvar sAgent = navigator.userAgent.toLowerCase() ;\r\n {\n
\r\n \tvar sAgent = navigator.userAgent.toLowerCase() ;\n
\t// Internet Explorer 5.5+\r\n \n
\tif ( /*@cc_on!@*/false && sAgent.indexOf("mac") == -1 )\r\n \t// Internet Explorer 5.5+\n
\t{\r\n \tif ( false && sAgent.indexOf("mac") == -1 ) //@cc_on!@\n
\t\tvar sBrowserVersion = navigator.appVersion.match(/MSIE (.\\..)/)[1] ;\r\n \t{\n
\t\treturn ( sBrowserVersion >= 5.5 ) ;\r\n \t\tvar sBrowserVersion = navigator.appVersion.match(/MSIE (.\\..)/)[1] ;\n
\t}\r\n \t\treturn ( sBrowserVersion >= 5.5 ) ;\n
\r\n \t}\n
\t// Gecko (Opera 9 tries to behave like Gecko at this point).\r\n \n
\tif ( navigator.product == "Gecko" && navigator.productSub >= 20030210 && !( typeof(opera) == \'object\' && opera.postError ) )\r\n \t// Gecko (Opera 9 tries to behave like Gecko at this point).\n
\t\treturn true ;\r\n \tif ( navigator.product == "Gecko" && navigator.productSub >= 20030210 && !( typeof(opera) == \'object\' && opera.postError ) )\n
\r\n \t\treturn true ;\n
\t// Opera 9.50+\r\n \n
\tif ( window.opera && window.opera.version && parseFloat( window.opera.version() ) >= 9.5 )\r\n \t// Opera 9.50+\n
\t\treturn true ;\r\n \tif ( window.opera && window.opera.version && parseFloat( window.opera.version() ) >= 9.5 )\n
\r\n \t\treturn true ;\n
\t// Adobe AIR\r\n \n
\t// Checked before Safari because AIR have the WebKit rich text editor\r\n \t// Adobe AIR\n
\t// features from Safari 3.0.4, but the version reported is 420.\r\n \t// Checked before Safari because AIR have the WebKit rich text editor\n
\tif ( sAgent.indexOf( \' adobeair/\' ) != -1 )\r\n \t// features from Safari 3.0.4, but the version reported is 420.\n
\t\treturn ( sAgent.match( / adobeair\\/(\\d+)/ )[1] >= 1 ) ;\t// Build must be at least v1\r\n \tif ( sAgent.indexOf( \' adobeair/\' ) != -1 )\n
\r\n \t\treturn ( sAgent.match( / adobeair\\/(\\d+)/ )[1] >= 1 ) ;\t// Build must be at least v1\n
\t// Safari 3+\r\n \n
\tif ( sAgent.indexOf( \' applewebkit/\' ) != -1 )\r\n \t// Safari 3+\n
\t\treturn ( sAgent.match( / applewebkit\\/(\\d+)/ )[1] >= 522 ) ;\t// Build must be at least 522 (v3)\r\n \tif ( sAgent.indexOf( \' applewebkit/\' ) != -1 )\n
\r\n \t\treturn ( sAgent.match( / applewebkit\\/(\\d+)/ )[1] >= 522 ) ;\t// Build must be at least 522 (v3)\n
\treturn false ;\r\n \n
}\r\n \treturn false ;\n
}\n
]]></string> </value> ]]></string> </value>
...@@ -366,7 +367,7 @@ function FCKeditor_IsCompatibleBrowser()\r\n ...@@ -366,7 +367,7 @@ function FCKeditor_IsCompatibleBrowser()\r\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>9606</int> </value> <value> <int>9321</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -280,6 +280,7 @@ var addOnChangeEventHandler = function() {\n ...@@ -280,6 +280,7 @@ var addOnChangeEventHandler = function() {\n
this.onchange = function() { changed = true; };\n this.onchange = function() { changed = true; };\n
}\n }\n
});\n });\n
return true;\n
});\n });\n
}\n }\n
});\n });\n
...@@ -316,6 +317,7 @@ var rewriteIndentedSelect = function() {\n ...@@ -316,6 +317,7 @@ var rewriteIndentedSelect = function() {\n
$(this).html(text.replace(/^(&nbsp;)+/, ""));\n $(this).html(text.replace(/^(&nbsp;)+/, ""));\n
$(this).css("paddingLeft", level+"em");\n $(this).css("paddingLeft", level+"em");\n
}\n }\n
return true;
});\n });\n
});\n });\n
};\n };\n
......
...@@ -49,7 +49,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -49,7 +49,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
function setFocus() {\n function setFocus() {\n
login = document.getElementById(\'name\');\n login = document.getElementById(\'name\');\n
password = document.getElementById(\'password\');\n password = document.getElementById(\'password\');\n
if (login.value != \'\')\n if (login.value !== \'\')\n
password.focus();\n password.focus();\n
else\n else\n
login.focus();\n login.focus();\n
......
1097 1098
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment