mirror of
https://github.com/cuigh/swirl
synced 2025-05-05 04:14:46 +00:00
19 lines
670 B
TypeScript
19 lines
670 B
TypeScript
namespace Swirl.Setting {
|
|
export class IndexPage {
|
|
constructor() {
|
|
$("#ldap-enabled").change(e => {
|
|
let enabled = $(e.target).prop("checked");
|
|
$("#fs-ldap").find("input:not(:checkbox)").prop("readonly", !enabled);
|
|
});
|
|
$("#ldap-auth-simple,#ldap-auth-bind").click(e => {
|
|
if ($(e.target).val() == "0") {
|
|
$("#div-auth-simple").show();
|
|
$("#div-auth-bind").hide();
|
|
} else {
|
|
$("#div-auth-simple").hide();
|
|
$("#div-auth-bind").show();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} |