Improve description of mobile view setting, and hide mobile settings if mobile view is disabled #2510

This commit is contained in:
Kijin Sung 2025-03-08 23:18:11 +09:00
parent b6c444c536
commit f980ea58c6
10 changed files with 60 additions and 15 deletions

View file

@ -147,3 +147,18 @@ function doSaveListConfig(module_srl)
exec_json('board.procBoardAdminInsertListConfig', params, function() { location.reload(); });
}
$(function() {
$('#use_mobile_y,#use_mobile_n').on('change', function() {
if ($(this).is(':checked')) {
if ($(this).val() == 'Y') {
$('.hide-if-not-mobile-view').show();
} else {
$('.hide-if-not-mobile-view').hide();
}
}
});
if ($('#use_mobile_n').is(':checked')) {
$('.hide-if-not-mobile-view').hide();
}
});