解决配置新增界面取消按钮跳转问题.
This commit is contained in:
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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...');
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -25,9 +25,7 @@ $(function(){
|
|||||||
},
|
},
|
||||||
errorContainer: "#messageBox",
|
errorContainer: "#messageBox",
|
||||||
});
|
});
|
||||||
$("#cancel").on("click",function(){
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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("");
|
||||||
|
|||||||
@@ -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));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
Reference in New Issue
Block a user