Skip to content

Commit

Permalink
Remove & Revert example
Browse files Browse the repository at this point in the history
  • Loading branch information
dneukirchen committed Feb 15, 2018
1 parent bd57f9f commit 2b8260b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 36 deletions.
27 changes: 0 additions & 27 deletions media/mod_login/js/admin-login.es6.js

This file was deleted.

14 changes: 5 additions & 9 deletions media/mod_login/js/admin-login.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

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

var btn = document.getElementById('btn-login-submit');
if (btn) {
btn.addEventListener('click', function (e) {
btn.addEventListener('click', function(e) {
e.preventDefault();
var form = document.getElementById('form-login');
if (form && document.formvalidator.isValid(form)) {
Joomla.submitbutton('login');
Joomla.submitbutton('login')
}
});
}
Expand All @@ -29,4 +24,5 @@
document.getElementById('mod-login-username').focus();
}
}
})();

})();

0 comments on commit 2b8260b

Please sign in to comment.