14 lines
487 B
JavaScript
14 lines
487 B
JavaScript
|
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');
|
||
|
});
|
||
|
|
||
|
$('#submit-app-token-login').click(function(e) {
|
||
|
e.preventDefault();
|
||
|
window.location.href = 'nc://' + encodeURIComponent($('#user').val()) + ':' + encodeURIComponent($('#password').val()) + '@' + encodeURIComponent($('#serverHost').val());
|
||
|
});
|
||
|
});
|