MAPG-180 extract all inline JS into separate JS file

This commit is contained in:
bence committed 2020-06-25 20:42:12 +02:00
1 parent 45904a98c2
commit 27115e44b6
6 files changed
+143 -141

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
(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';
MapGuesser.httpRequest('POST', '/signup/google/reset', function () {
window.location.replace('/signup');
});
};
})();