You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

login.js 557B

123456789101112131415161718192021222324
  1. /**
  2. * Copyright (c) 2015
  3. * Vincent Petry <pvince81@owncloud.com>
  4. * Jan-Christoph Borchardt, http://jancborchardt.net
  5. * This file is licensed under the Affero General Public License version 3 or later.
  6. * See the COPYING-README file.
  7. */
  8. /**
  9. * @namespace
  10. * @memberOf OC
  11. */
  12. OC.Login = _.extend(OC.Login || {}, {
  13. onLogin: function () {
  14. $('#submit')
  15. .removeClass('icon-confirm')
  16. .addClass('icon-loading-small')
  17. .css('opacity', '1');
  18. return true;
  19. }
  20. });
  21. $(document).ready(function() {
  22. $('form[name=login]').submit(OC.Login.onLogin);
  23. });