Skip to content

Commit bb106ac

Browse files
committed
set disabled reason in element title
1 parent 8d8bd4f commit bb106ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webroot/panel/account.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,16 @@ function enableOrDisableSubmitLoginShell() {
302302
var newLoginShell = getNewLoginShell();
303303
if (!isLoginShellValid(newLoginShell)) {
304304
$("#submitLoginShell").prop("disabled", true);
305+
$("#submitLoginShell").prop("title", "Invalid Login Shell");
305306
return;
306307
}
307308
if (newLoginShell == ldapLoginShell) {
308309
$("#submitLoginShell").prop("disabled", true);
310+
$("#submitLoginShell").prop("title", "Login Shell Unchanged");
309311
return;
310312
}
311313
$("#submitLoginShell").prop("disabled", false);
314+
$("#submitLoginShell").prop("title", "Submit Login Shell");
312315
}
313316
$("#customLoginBox").on("input", enableOrDisableSubmitLoginShell);
314317
$("#loginSelector").change(enableOrDisableSubmitLoginShell);

0 commit comments

Comments
 (0)