mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
19 lines
580 B
JavaScript
19 lines
580 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
jQuery(document).ready(function() {
|
|
$('#app-token-login').click(function (e) {
|
|
e.preventDefault();
|
|
$(this).addClass('hidden');
|
|
$('#redirect-link').addClass('hidden');
|
|
$('#app-token-login-field').removeClass('hidden');
|
|
});
|
|
|
|
document.getElementById('login-form').addEventListener('submit', function (e) {
|
|
e.preventDefault();
|
|
document.location.href = e.target.attributes.action.value
|
|
})
|
|
|
|
$('#login-form input').removeAttr('disabled');
|
|
})
|