From 2c63ca5a3d8b7fe4583e96abe33cde589ade9d54 Mon Sep 17 00:00:00 2001 From: Alexander Marsalek Date: Thu, 16 Oct 2014 15:07:14 +0200 Subject: config -newpeps() fix --- id/ConfigWebTool/src/main/webapp/js/common.js | 3 ++- id/ConfigWebTool/src/main/webapp/jsp/editMOAConfig.jsp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/id/ConfigWebTool/src/main/webapp/js/common.js b/id/ConfigWebTool/src/main/webapp/js/common.js index f7ef2c415..24702807f 100644 --- a/id/ConfigWebTool/src/main/webapp/js/common.js +++ b/id/ConfigWebTool/src/main/webapp/js/common.js @@ -232,8 +232,9 @@ function newPeps() { var nextindex = lastindex + 1; clone.innerHTML = clone.innerHTML.replace(/[A-Z]{2}/, '
'); + clone.innerHTML = clone.innerHTML.replace(//, '
'); clone.innerHTML = clone.innerHTML.replace(/name="storkconfig.cpepslist\[\d/g, 'name="storkconfig.cpepslist[' + nextindex); + clone.innerHTML = clone.innerHTML.replace(/name="wwgrp_loadGeneralConfig_storkconfig_cpepslist_\d/g, 'name="wwgrp_loadGeneralConfig_storkconfig_cpepslist_' + nextindex); clone.innerHTML = clone.innerHTML.replace(/(.*" value=").*?(".*)/g, '$1$2'); target.parentNode.appendChild(clone); } diff --git a/id/ConfigWebTool/src/main/webapp/jsp/editMOAConfig.jsp b/id/ConfigWebTool/src/main/webapp/jsp/editMOAConfig.jsp index bf5625419..1aeda519f 100644 --- a/id/ConfigWebTool/src/main/webapp/jsp/editMOAConfig.jsp +++ b/id/ConfigWebTool/src/main/webapp/jsp/editMOAConfig.jsp @@ -260,6 +260,7 @@ + " onclick='this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);'/> -- cgit v1.2.3