Skip to content

Commit 8ee4b97

Browse files
committed
fix attr -> prop
1 parent f6d6b9b commit 8ee4b97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webroot/panel/account.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@
245245
var defaultShellSelected = false;
246246
$("#loginSelector option").each(function(i, e) {
247247
if ($(this).val() == ldapLoginShell) {
248-
$(this).attr("selected", true);
248+
$(this).prop("selected", true);
249249
defaultShellSelected = true;
250250
}
251251
});
252252
if (!defaultShellSelected) {
253253
$("#customLoginBox").val(ldapLoginShell);
254-
$("#customLoginSelectorOption").attr("selected", true);
254+
$("#customLoginSelectorOption").prop("selected", true);
255255
}
256256

257257
function showOrHideCustomLoginBox() {
@@ -286,7 +286,7 @@ function isLoginShellValid(x) {
286286

287287
function enableOrDisableCustomLoginBoxHighlight() {
288288
if (
289-
($("#loginSelector").val() == "Custom") &&
289+
($("#customLoginSelectorOption").prop("selected") == true) &&
290290
!isLoginShellValid($("#customLoginBox").val())
291291
) {
292292
$("#customLoginBox").css("box-shadow", "0 0 0 0.3rem rgba(220, 53, 69, 0.25)");

0 commit comments

Comments
 (0)