解决配置新增界面取消按钮跳转问题.

This commit is contained in:
zhangwenqing
2018-08-27 16:31:42 +08:00
parent ed5a25afdc
commit 5f93a39d3f
23 changed files with 3 additions and 72 deletions

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -49,9 +49,6 @@ $(function(){
$("#cfgFrom").attr("action","${ctx}/cfg/app/saveOrUpdateCfg"); $("#cfgFrom").attr("action","${ctx}/cfg/app/saveOrUpdateCfg");
$("#save").submit(); $("#save").submit();
}); });
$("#cancel").on("click",function(){
window.history.back();
});
$("#cfgFrom").validate({ $("#cfgFrom").validate({
submitHandler: function(form){ submitHandler: function(form){
//loading('onloading...'); //loading('onloading...');

View File

@@ -7,9 +7,6 @@
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cfgFrom").find("input,select,radio").attr("disabled",true); $("#cfgFrom").find("input,select,radio").attr("disabled",true);
$("#cancel").on("click",function(){
window.history.back();
});
}); });
</script> </script>

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$("input[name='cfgKeywords']").addClass("url"); $("input[name='cfgKeywords']").addClass("url");
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));

View File

@@ -52,9 +52,6 @@ $(function(){
$("#areaIp").addClass("hidden"); $("#areaIp").addClass("hidden");
} }
}); });
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change",function(){ $(".action").on("change",function(){
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -42,9 +42,6 @@ $(function(){
$("#areaIp").addClass("hidden"); $("#areaIp").addClass("hidden");
} }
}); });
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change",function(){ $(".action").on("change",function(){
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -25,9 +25,7 @@ $(function(){
}, },
errorContainer: "#messageBox", errorContainer: "#messageBox",
}); });
$("#cancel").on("click",function(){
window.history.back();
});
}); });
</script> </script>
</head> </head>

View File

@@ -13,9 +13,6 @@
$(document) $(document)
.ready( .ready(
function() { function() {
$("#cancel").on("click", function() {
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));

View File

@@ -13,9 +13,6 @@
$("#cfgRegionCode").val($("#cfgRegionCodeMaat").val()); $("#cfgRegionCode").val($("#cfgRegionCodeMaat").val());
$("#cfgType").val($("#cfgTypeMaat").val()); $("#cfgType").val($("#cfgTypeMaat").val());
} */ } */
$("#cancel").on("click", function() {
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));

View File

@@ -13,11 +13,7 @@
$(document) $(document)
.ready( .ready(
function() { function() {
$("#cancel").on("click", function() { $(".action").on("change", function() {
window.history.back();
});
$(".action").on("change", function() {
switchAction($("input[name=action]:checked").val()); switchAction($("input[name=action]:checked").val());
//拦截根据action切换动作部分 //拦截根据action切换动作部分
setInterceptDefaultInfo(""); setInterceptDefaultInfo("");

View File

@@ -48,9 +48,6 @@
$("#areaIp").addClass("hidden"); $("#areaIp").addClass("hidden");
} }
}); });
$("#cancel").on("click", function() {
window.history.back();
});
$("select[name$='ipType']").on("change", function() { $("select[name$='ipType']").on("change", function() {
switchIpType($(this)); switchIpType($(this));
}); });

View File

@@ -12,9 +12,6 @@ $(function(){
$("#cfgRegionCode").val($("#cfgRegionCodeMaat").val()); $("#cfgRegionCode").val($("#cfgRegionCodeMaat").val());
$("#cfgType").val($("#cfgTypeMaat").val()); $("#cfgType").val($("#cfgTypeMaat").val());
} }
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -172,9 +172,7 @@ $(function(){
var tableName=$(this).attr("name").replace(".ipType",""); var tableName=$(this).attr("name").replace(".ipType","");
switchIpType($(".ipType")); switchIpType($(".ipType"));
}); });
$("#cancel").on("click",function(){
window.history.back();
});
}); });
</script> </script>
</head> </head>

View File

@@ -13,9 +13,6 @@
$(document) $(document)
.ready( .ready(
function() { function() {
$("#cancel").on("click", function() {
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));

View File

@@ -13,9 +13,6 @@
$(document) $(document)
.ready( .ready(
function() { function() {
$("#cancel").on("click", function() {
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -5,9 +5,6 @@
<title><spring:message code="${cfgName}"></spring:message></title> <title><spring:message code="${cfgName}"></spring:message></title>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$("#cancel").on("click",function(){
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
}); });

View File

@@ -18,10 +18,6 @@
$("#cfgFile").on('change',function(){ $("#cfgFile").on('change',function(){
$("#urlInfo").val($("#cfgFile").val()); $("#urlInfo").val($("#cfgFile").val());
}); });
$("#cancel").on("click", function() {
window.history.back();
});
$("#cfgFrom") .validate( { $("#cfgFrom") .validate( {
submitHandler : function(form) { submitHandler : function(form) {

View File

@@ -13,9 +13,6 @@
$(document) $(document)
.ready( .ready(
function() { function() {
$("#cancel").on("click", function() {
window.history.back();
});
$(".action").on("change", function() { $(".action").on("change", function() {
$("#serviceId").val($(this).attr("serviceId")); $("#serviceId").val($(this).attr("serviceId"));
$("#protocolId").val($(this).attr("protocolId")); $("#protocolId").val($(this).attr("protocolId"));