removes useless connectlinktype check

This commit is contained in:
Phallacy 2019-03-25 00:30:45 -07:00
parent 4144d929e7
commit 0fe1d350e6

View File

@ -36,13 +36,8 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function($, loading, l
} else {
$(".disabledUserBanner", page).hide();
}
if ("Guest" == user.ConnectLinkType) {
$("#fldConnectInfo", page).hide();
$("#txtUserName", page).prop("disabled", "disabled");
} else {
$("#txtUserName", page).prop("disabled", "").removeAttr("disabled");
$("#fldConnectInfo", page).show();
}
$("#txtUserName", page).prop("disabled", "").removeAttr("disabled");
$("#fldConnectInfo", page).show();
$(".lnkEditUserPreferences", page).attr("href", "mypreferencesmenu.html?userId=" + user.Id);
libraryMenu.setTitle(user.Name);
page.querySelector(".username").innerHTML = user.Name;