Browse Source

show feedback spinner for log in process

tags/v8.2beta1
Jan-Christoph Borchardt 8 years ago
parent
commit
cea3247d49
2 changed files with 26 additions and 1 deletions
  1. 24
    0
      core/js/login.js
  2. 2
    1
      core/templates/login.php

+ 24
- 0
core/js/login.js View File

@@ -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);
});

+ 2
- 1
core/templates/login.php View File

@@ -3,7 +3,8 @@
vendor_script('jsTimezoneDetect/jstz');
script('core', [
'visitortimezone',
'lostpassword'
'lostpassword',
'login'
]);
?>


Loading…
Cancel
Save