Skip to content

Commit

Permalink
Revert CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dneukirchen committed Feb 15, 2018
1 parent 2b8260b commit b8be210
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions media/mod_login/js/admin-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
*/

(function() {
'use strict';
'use strict';

var btn = document.getElementById('btn-login-submit');
if (btn) {
btn.addEventListener('click', function(e) {
e.preventDefault();
var form = document.getElementById('form-login');
if (form && document.formvalidator.isValid(form)) {
Joomla.submitbutton('login')
}
});
}
var btn = document.getElementById('btn-login-submit');
if (btn) {
btn.addEventListener('click', function(e) {
e.preventDefault();
var form = document.getElementById('form-login');
if (form && document.formvalidator.isValid(form)) {
Joomla.submitbutton('login')
}
});
}

var formTmp = document.querySelector('.login-initial');
if (formTmp) {
formTmp.style.display = 'block';
if (!document.querySelector('joomla-alert')) {
document.getElementById('mod-login-username').focus();
}
}
var formTmp = document.querySelector('.login-initial');
if (formTmp) {
formTmp.style.display = 'block';
if (!document.querySelector('joomla-alert')) {
document.getElementById('mod-login-username').focus();
}
}

})();

0 comments on commit b8be210

Please sign in to comment.