diff --git a/web/js/ajaxUtils.js b/web/js/ajaxUtils.js index 4197952..3d5f776 100644 --- a/web/js/ajaxUtils.js +++ b/web/js/ajaxUtils.js @@ -26,9 +26,10 @@ function createHttpRequest() { function buildOptions(xmlDoc,id) { var selectObj = document.getElementById(id); - if (!selectObj || selectObj.tagName!="SELECT") { + if (!selectObj || selectObj.tagName!="TR") { return; } + var selectObjNew = selectObj.childNodes[3].childNodes[1] var options = xmlDoc.getElementsByTagName("option"); //clear select object // for (var i = selectObj.length-1 ; i >= 0 ; i--){ @@ -38,10 +39,9 @@ function buildOptions(xmlDoc,id) { for (var i=0; i - 增加文件夹 + 增加文件夹 @@ -251,7 +251,7 @@ function setOptions() { if (xmlObj) { var options = xmlObj.getElementsByTagName("options"); buildOptions(options[0],"toMenuid"); - buildOptions(options[1],"subMenuid"); + buildOptions(options[1],"submenu"); buildOptions(options[2],"func"); } } @@ -287,10 +287,11 @@ function addNode(objName,type) { if (upmenuid) { var menuname="",menuid="",pos=-1; var obj = document.getElementById(objName); - for (var i=0; i