From 58ea36bb02539b27c4b835c1a14f2433d3b0d9cf Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Thu, 21 Mar 2024 14:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/js/ajaxUtils.js | 8 ++++---- web/manage/MenuEdit.jsp | 15 ++++++++------- 2 files changed, 12 insertions(+), 11 deletions(-) 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