diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/js/login.js | 24 | ||||
-rw-r--r-- | core/templates/login.php | 3 |
2 files changed, 26 insertions, 1 deletions
diff --git a/core/js/login.js b/core/js/login.js new file mode 100644 index 00000000000..33ec868cb23 --- /dev/null +++ b/core/js/login.js @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2015 + * Vincent Petry <pvince81@owncloud.com> + * Jan-Christoph Borchardt, http://jancborchardt.net + * This file is licensed under the Affero General Public License version 3 or later. + * See the COPYING-README file. + */ + +/** + * @namespace + * @memberOf OC + */ +OC.Login = _.extend(OC.Login || {}, { + onLogin: function () { + $('#submit') + .removeClass('icon-confirm') + .addClass('icon-loading-small') + .css('opacity', '1'); + return true; + } +}); +$(document).ready(function() { + $('form[name=login]').submit(OC.Login.onLogin); +}); diff --git a/core/templates/login.php b/core/templates/login.php index 0cd76b2b372..50ca6febf08 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -3,7 +3,8 @@ vendor_script('jsTimezoneDetect/jstz'); script('core', [ 'visitortimezone', - 'lostpassword' + 'lostpassword', + 'login' ]); ?> |