32 lines
910 B
JavaScript
32 lines
910 B
JavaScript
/******/ (function() { // webpackBootstrap
|
|
/******/ "use strict";
|
|
var __webpack_exports__ = {};
|
|
/*!*********************!*\
|
|
!*** ./src/form.js ***!
|
|
\*********************/
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
var _this = this;
|
|
|
|
// Password toggle
|
|
$('#showadminpass').click(function (e) {
|
|
e.preventDefault();
|
|
var passwordTextField = $('#password');
|
|
|
|
if (passwordTextField.attr('type') === 'password') {
|
|
passwordTextField.attr('type', 'text');
|
|
} else {
|
|
passwordTextField.attr('type', 'password');
|
|
}
|
|
}); // Disable submit after first click
|
|
|
|
$('form').submit(function () {
|
|
// prevent duplicate form submissions
|
|
$(_this).find(':submit').attr('disabled', 'disabled');
|
|
$(_this).find(':submit')[0].value = t('registration', 'Loading …');
|
|
});
|
|
});
|
|
/******/ })()
|
|
;
|
|
//# sourceMappingURL=registration-form.js.map?v=f64a2674d0a4e7f46973
|