Authored by whb

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -422,10 +422,20 @@ exports.init = function(page) {
$('#agree-terms').click(function() {
if ($(this).attr('notchecked')) {
$(this).removeAttr('notchecked');
$registerBtn.addClass('disable').attr('disabled', 'true');
} else {
$(this).attr('notchecked', 'true');
$registerBtn.removeClass('disable').removeAttr('disabled');
}
});
// 按回车键提交
$registerPage.on('keydown', function(e) {
var key = e.which;
if (key === 13) {
$registerBtn.click();
}
});
$registerPage.find('.va').keyup(function() {
... ... @@ -532,7 +542,6 @@ exports.init = function(page) {
//ajax表单提交
$registerBtn.click(function() {
var url;
if (page === 'reg') {
... ... @@ -602,4 +611,4 @@ exports.init = function(page) {
$captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime());
});
};
\ No newline at end of file
};
... ...