diff --git a/src/main/webapp/WEB-INF/include/form/ipInfo.jsp b/src/main/webapp/WEB-INF/include/form/ipInfo.jsp
index 15b8329ba..7c38ef0f3 100644
--- a/src/main/webapp/WEB-INF/include/form/ipInfo.jsp
+++ b/src/main/webapp/WEB-INF/include/form/ipInfo.jsp
@@ -2,24 +2,14 @@
<%@ include file="/WEB-INF/include/taglib.jsp"%>
-
-
-
-
-
-
-
-
-
-
@@ -28,84 +18,128 @@
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<%--
@@ -136,7 +170,7 @@
- <%-- --%>
+
@@ -157,7 +191,7 @@
- <%-- --%>
+
@@ -217,5 +251,5 @@
-
+ --%>
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/views/cfg/av/voip/voipForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/voip/voipForm.jsp
index 6ce612d88..21a8a7f1b 100644
--- a/src/main/webapp/WEB-INF/views/cfg/av/voip/voipForm.jsp
+++ b/src/main/webapp/WEB-INF/views/cfg/av/voip/voipForm.jsp
@@ -249,21 +249,7 @@ var delContent=function(contentClassName,addBtnClassName){
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -272,15 +258,6 @@ var delContent=function(contentClassName,addBtnClassName){
-
-
-
-
-
-
-
-
-
@@ -289,12 +266,42 @@ var delContent=function(contentClassName,addBtnClassName){
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -303,7 +310,7 @@ var delContent=function(contentClassName,addBtnClassName){
-
+
@@ -339,8 +346,8 @@ var delContent=function(contentClassName,addBtnClassName){
diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js
index 9ab23121d..817946c39 100644
--- a/src/main/webapp/static/global/scripts/common.js
+++ b/src/main/webapp/static/global/scripts/common.js
@@ -60,28 +60,16 @@ var switchIpInfo=function(obj,type){
var ipPattern="";
var portPattern="";
- var row=$(obj).parents('.row');
+ var row=$(obj).parents('.row').parents('.row');
- if(type=="ipType"){
- ipType=$(obj).val();
- ipPattern=row.siblings().find("select[name$='ipPattern']").val();
- portPattern=row.siblings().find("select[name$='portPattern']").val();
- }
- if(type=="ipPattern"){
- ipType=row.siblings().find("select[name$='ipType']").val();
- ipPattern=$(obj).val();
- portPattern=row.siblings().find("select[name$='portPattern']").val();
- }
- if(type=="portPattern"){
- ipType=row.siblings().find("select[name$='ipType']").val();
- ipPattern=row.siblings().find("select[name$='ipPattern']").val();
- portPattern=$(obj).val();
- }
+ ipType=row.find("select[name$='ipType']").val();
+ ipPattern=row.find("select[name$='ipPattern']").val();
+ portPattern=row.find("select[name$='portPattern']").val();
- var srcIp=row.siblings().find("input[name$='srcIpAddress']");
- var destIp=row.siblings().find("input[name$='destIpAddress']");
- var srcPort=row.siblings().find("input[name$='srcPort']");
- var destPort=row.siblings().find("input[name$='destPort']");
+ var srcIp=row.find("input[name$='srcIpAddress']");
+ var destIp=row.find("input[name$='destIpAddress']");
+ var srcPort=row.find("input[name$='srcPort']");
+ var destPort=row.find("input[name$='destPort']");
var ipV4Default=new Array();
ipV4Default[0]="0.0.0.0/8"; //subnet
@@ -244,6 +232,10 @@ var more=function(obj){
$(obj).data("click-times",clickTimes+1);
}
if(clickTimes==1){
+ $(".destPort").removeClass("hidden").removeClass("disabled");
+ $(obj).data("click-times",clickTimes+1);
+ }
+ if(clickTimes==2){
$(".protocol").removeClass("hidden").removeClass("disabled");
$(obj).data("click-times",clickTimes+1);
}