|
@@ -140,6 +140,7 @@
|
|
|
parentLi.children(".turn-on").hide();
|
|
|
}else{
|
|
|
if(s_email == ""){
|
|
|
+ $("input#email").focus();
|
|
|
emailSetModalShow();
|
|
|
return;
|
|
|
}else{
|
|
@@ -150,10 +151,14 @@
|
|
|
saveData();
|
|
|
});
|
|
|
$(".emailset>img").click(function(){
|
|
|
+ $("input#email").focus();
|
|
|
emailSetModalShow();
|
|
|
});
|
|
|
$("#sure").click(function(){
|
|
|
- var thisValue = $("#email").val();
|
|
|
+ var thisValue = $.trim($("#email").val());
|
|
|
+ if(thisValue==""){
|
|
|
+ return
|
|
|
+ }
|
|
|
var szReg=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-|\-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
|
|
|
if(!szReg.test(thisValue)){
|
|
|
$(".error").removeClass("hide");
|
|
@@ -201,6 +206,7 @@
|
|
|
"matchtype":1,
|
|
|
"email": $("#email").val(),
|
|
|
};
|
|
|
+ s_email = $("#email").val();
|
|
|
if($("#matchType li:eq(2)").hasClass("checked")){
|
|
|
param["matchtype"] = 2;
|
|
|
}
|