Prevent default behavior of clicking button at login page

This commit is contained in:
printempw 2017-07-13 21:37:37 +08:00
parent a51523e54c
commit 8bb885d476
3 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,9 @@
'use strict';
$('#login-button').click(() => {
$('#login-button').click(e => {
e.preventDefault();
let data = {
identification: $('#identification').val(),
password: $('#password').val(),

View File

@ -2,7 +2,9 @@
'use strict';
$('#register-button').click(() => {
$('#register-button').click(e => {
e.preventDefault();
let data = {
email: $('#email').val(),
password: $('#password').val(),

View File

@ -2,7 +2,9 @@
'use strict';
$('#forgot-button').click(() => {
$('#forgot-button').click(e => {
e.preventDefault();
let data = {
email: $('#email').val(),
captcha: $('#captcha').val()
@ -47,7 +49,9 @@ $('#forgot-button').click(() => {
});
});
$('#reset-button').click(() => {
$('#reset-button').click(e => {
e.preventDefault();
let data = {
uid: $('#uid').val(),
password: $('#password').val()