AUTO LOGOUT EXTENDED

自動ログアウト除外ユーザ設定を追加
This commit is contained in:
2021-07-02 18:54:27 +09:00
parent 6d4b4c813d
commit adc35d3e8a
8 changed files with 91 additions and 4 deletions
+9 -1
View File
@@ -7,6 +7,7 @@ jQuery(function ($) {
let my_type = $('.logout-type_radio');
let expire_date = $('.expire-date');
let force_logout = $('.force-logout');
let exclude_user = $('.select_exclude_checkbox')
my_type.each(function () {
if ($(this).prop('checked') == true) {
@@ -15,6 +16,7 @@ jQuery(function ($) {
}
if ($(this).val() == 1) {
force_logout.prop('disabled', true);
exclude_user.prop('disabled', true);
}
}
});
@@ -22,14 +24,20 @@ jQuery(function ($) {
my_type.click(function () {
if ($(this).val() == 1) {
force_logout.prop('disabled', true);
exclude_user.prop('checked', false);
exclude_user.prop('disabled', true);
} else {
force_logout.prop('disabled', false);
exclude_user.prop('disabled', false);
}
if ($(this).val() == 2) {
expire_date.prop('disabled', true);
} else {
expire_date.prop('disabled', false);
}
})
});
}
});