Skip to content

Commit

Permalink
removes useless connectlinktype check
Browse files Browse the repository at this point in the history
  • Loading branch information
LogicalPhallacy committed Mar 25, 2019
1 parent 4144d92 commit 0fe1d35
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/scripts/useredit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0fe1d35

Please sign in to comment.