Apply suggestions from code review

adding justaman's fixes

Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
This commit is contained in:
Vasily 2019-03-23 23:47:31 -07:00 committed by GitHub
parent fe71fc31c4
commit 4144d929e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,6 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function($, loading, l
} else { } else {
$(".disabledUserBanner", page).hide(); $(".disabledUserBanner", page).hide();
} }
"Guest" == user.ConnectLinkType ? ($("#fldConnectInfo", page).hide(),
$("#txtUserName", page).prop("disabled", "disabled")) : ($("#txtUserName", page).prop("disabled", "").removeAttr("disabled"),
if ("Guest" == user.ConnectLinkType) { if ("Guest" == user.ConnectLinkType) {
$("#fldConnectInfo", page).hide(); $("#fldConnectInfo", page).hide();
$("#txtUserName", page).prop("disabled", "disabled"); $("#txtUserName", page).prop("disabled", "disabled");