修复节点组描述含有双引号会引起页面错误的问题

This commit is contained in:
chenjinsong
2019-05-07 09:31:06 +08:00
parent fb98d1877e
commit a002dba648

View File

@@ -352,6 +352,11 @@
//修改提交
function commitUpdate(){
if(checkForm()) {
var grpDesc = $("#groupDesc").val();
if (grpDesc && grpDesc.indexOf('"') != -1) {
$("#groupDesc").val(grpDesc.replace(/\"/g, "\\\""));
}
//提交表单
$("#nodeGroupForm select").removeAttr('disabled');
var actionurl = "<%=path%>/nodeGroupManage/nodeGroupManage!execute.do?action=updateNodeGroup";