1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update connect

This commit is contained in:
Luke Pulverenti 2014-10-14 00:22:17 -04:00
parent 2696d8eb73
commit 0910dce389
7 changed files with 97 additions and 46 deletions

View file

@ -26,6 +26,12 @@
$('#fldConnectInfo', page).hide();
}
if (user.ConnectLinkType == 'Guest') {
$('#txtUserName', page).prop("disabled", "disabled");
} else {
$('#txtUserName', page).prop("disabled", "").removeAttr('disabled');
}
if (!loggedInUser.Configuration.IsAdministrator || !user.Id) {
$('.lnkEditUserPreferencesContainer', page).hide();
@ -254,8 +260,6 @@
var page = this;
loadData(page);
$("form input:first", page).focus();
});
})(jQuery, window, document);