diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2015-08-27 21:02:00 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2015-08-27 21:08:46 +0200 |
commit | cea3247d49e2aa0bdf49303a9bffadfb36c44898 (patch) | |
tree | 91c2afc24c0a8e52fe3e3b61ce28550e5580b189 /core | |
parent | 2a935f1b47ed27596ac4a6d8bf5fd911c766d453 (diff) | |
download | nextcloud-server-cea3247d49e2aa0bdf49303a9bffadfb36c44898.tar.gz nextcloud-server-cea3247d49e2aa0bdf49303a9bffadfb36c44898.zip |
show feedback spinner for log in process
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' ]); ?> |