From cea3247d49e2aa0bdf49303a9bffadfb36c44898 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 27 Aug 2015 21:02:00 +0200 Subject: show feedback spinner for log in process --- core/js/login.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 core/js/login.js (limited to 'core/js') 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 + * 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); +}); -- cgit v1.2.3