代理拦截修改提交
This commit is contained in:
@@ -878,16 +878,16 @@ jQuery.validator.addMethod("noStrategyCheck",function(value,element) {
|
||||
return flag;
|
||||
});
|
||||
// 代理拦截策略ssl version min小于max校验
|
||||
//jQuery.validator.addMethod("sslVersionCheck",function(value,element) {
|
||||
// var min,max;
|
||||
// if($(element).attr("id")=="min"){
|
||||
// min=element,max=$("#max");
|
||||
// }else{
|
||||
// max=element,min=$("#min");
|
||||
// }
|
||||
// if($(min).find("option:selected").data("sort")>=$(max).find("option:selected").data("sort")){
|
||||
// return false;
|
||||
// }else{
|
||||
// return true;
|
||||
// }
|
||||
//});
|
||||
jQuery.validator.addMethod("sslVersionCheck",function(value,element) {
|
||||
var min,max;
|
||||
if($(element).attr("id")=="min"){
|
||||
min=element,max=$("#max");
|
||||
}else{
|
||||
max=element,min=$("#min");
|
||||
}
|
||||
if($(min).find("option:selected").data("sort")>=$(max).find("option:selected").data("sort")){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user