WP_PLUGIN 自動ログアウト拡張

初回コミット
This commit is contained in:
2021-06-29 15:49:09 +09:00
commit 6d4b4c813d
13 changed files with 535 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
jQuery(function ($) {
change_al_ext_expire();
function change_al_ext_expire() {
let my_type = $('.logout-type_radio');
let expire_date = $('.expire-date');
let force_logout = $('.force-logout');
my_type.each(function () {
if ($(this).prop('checked') == true) {
if ($(this).val() == 2) {
expire_date.prop('disabled', true);
}
if ($(this).val() == 1) {
force_logout.prop('disabled', true);
}
}
});
my_type.click(function () {
if ($(this).val() == 1) {
force_logout.prop('disabled', true);
} else {
force_logout.prop('disabled', false);
}
if ($(this).val() == 2) {
expire_date.prop('disabled', true);
} else {
expire_date.prop('disabled', false);
}
})
}
});