You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
860 B
28 lines
860 B
$("#username, #password").on("focus blur", function() {
|
|
var a = this;
|
|
setTimeout(function() {
|
|
var b = $(a).css("borderColor");
|
|
if (b != "") {
|
|
$(a).prev().css("color", b)
|
|
}
|
|
}, 100)
|
|
}).blur();
|
|
$("#loginForm").validate({
|
|
submitHandler: function(c) {
|
|
var d = $("#username").val()
|
|
, a = $("#password").val()
|
|
, b = $("#validCode").val();
|
|
js.ajaxSubmitForm($(c), function(f, e, g) {
|
|
if (f.result.code != 0) {
|
|
js.loading($("#btnSubmit").data("loading"));
|
|
location = ctx + "index"
|
|
} else {
|
|
js.showMessage(f.message)
|
|
}
|
|
}, "json", true, $("#btnSubmit").data("loginValid"));
|
|
$("#username").val(d);
|
|
$("#password").val(a).select().focus();
|
|
$("#validCode").val(b)
|
|
}
|
|
});
|