Steam三个菜单的form表单当action 为monit的时候ip和账号必选一个
This commit is contained in:
@@ -59,14 +59,15 @@ $(function(){
|
|||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
var flag = true;
|
var flag = true;
|
||||||
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||||
/* if($(".boxSolid").length ==$(".boxSolid.hidden").length){
|
if($("[name=action]:checked").val()==1&&$(".boxSolid").length ==$(".boxSolid.hidden").length){
|
||||||
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
return;
|
return;
|
||||||
} */
|
}
|
||||||
|
/*
|
||||||
if($("[name=action]:checked").val()==1&&$(".ipPortAdd").parents(".form-section").next(".boxSolid").is(":hidden")){
|
if($("[name=action]:checked").val()==1&&$(".ipPortAdd").parents(".form-section").next(".boxSolid").is(":hidden")){
|
||||||
top.$.jBox.tip("<spring:message code='ip_must_select'/>", "<spring:message code='info'/>");
|
top.$.jBox.tip("<spring:message code='ip_must_select'/>", "<spring:message code='info'/>");
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
|
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
|
||||||
if($(this).val()==''){
|
if($(this).val()==''){
|
||||||
$(this).parents(".form-group").find(
|
$(this).parents(".form-group").find(
|
||||||
|
|||||||
@@ -66,11 +66,16 @@ $(function(){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
var flag = true;
|
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||||
|
if($("[name=action]:checked").val()==1&&$(".boxSolid").length ==$(".boxSolid.hidden").length) {
|
||||||
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/*
|
||||||
if($("[name=action]:checked").val()==1&&$(".ipPortAdd").parents(".form-section").next(".boxSolid").is(":hidden")){
|
if($("[name=action]:checked").val()==1&&$(".ipPortAdd").parents(".form-section").next(".boxSolid").is(":hidden")){
|
||||||
top.$.jBox.tip("<spring:message code='ip_must_select'/>", "<spring:message code='info'/>");
|
top.$.jBox.tip("<spring:message code='ip_must_select'/>", "<spring:message code='info'/>");
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
|
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
|
||||||
|
|
||||||
if($(this).val()==''){
|
if($(this).val()==''){
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ $(function(){
|
|||||||
},
|
},
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
var flag = true;
|
var flag = true;
|
||||||
|
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||||
|
if($("[name=action]:checked").val()==1&&$(".boxSolid").length ==$(".boxSolid.hidden").length){
|
||||||
|
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
|
$(".boxSolid:visible").find("input[name$='cfgKeywords']").each(function(){
|
||||||
if($(this).val()==''){
|
if($(this).val()==''){
|
||||||
$(this).parents(".form-group").find(
|
$(this).parents(".form-group").find(
|
||||||
|
|||||||
Reference in New Issue
Block a user