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/js | |
parent | 2a935f1b47ed27596ac4a6d8bf5fd911c766d453 (diff) | |
download | nextcloud-server-cea3247d49e2aa0bdf49303a9bffadfb36c44898.tar.gz nextcloud-server-cea3247d49e2aa0bdf49303a9bffadfb36c44898.zip |
show feedback spinner for log in process
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/login.js | 24 |
1 files changed, 24 insertions, 0 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); +}); |