MAPG-180 standardize form submit with AJAX
This commit is contained in:
1 parent
e4a51c139f
commit
ec969167e4
12 files changed
+18
-148
No files matched your search
@@ -1,16 +1,4 @@
|
||||
(function () {
|
||||
var form = document.getElementById('googleSignupForm');
|
||||
|
||||
form.onsubmit = function (e) {
|
||||
document.getElementById('loading').style.visibility = 'visible';
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
MapGuesser.httpRequest('POST', form.action, function () {
|
||||
window.location.replace('/');
|
||||
});
|
||||
};
|
||||
|
||||
document.getElementById('cancelGoogleSignupButton').onclick = function () {
|
||||
document.getElementById('loading').style.visibility = 'visible';
|
||||
|
||||
|
||||
Reference in new issue
Block a user