mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
Improve description of mobile view setting, and hide mobile settings if mobile view is disabled #2510
This commit is contained in:
parent
b6c444c536
commit
f980ea58c6
10 changed files with 60 additions and 15 deletions
|
|
@ -121,9 +121,18 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->mobile_view}</label>
|
||||
<div class="x_controls">
|
||||
<label class="x_inline" for="use_mobile"><input type="checkbox" name="use_mobile" id="use_mobile" value="Y" checked="checked"|cond="$module_info->use_mobile == 'Y'" /> {$lang->about_mobile_view}</label>
|
||||
<label for="use_mobile_y" class="x_inline">
|
||||
<input type="radio" name="use_mobile" id="use_mobile_y" value="Y" checked="checked"|cond="$module_info->use_mobile === 'Y'" />
|
||||
{$lang->cmd_yes}
|
||||
</label>
|
||||
<label for="use_mobile_n" class="x_inline">
|
||||
<input type="radio" name="use_mobile" id="use_mobile_n" value="N" checked="checked"|cond="$module_info->use_mobile !== 'Y'" />
|
||||
{$lang->cmd_no}
|
||||
</label>
|
||||
<p class="x_help-block">{$lang->about_mobile_view}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hide-if-not-mobile-view">
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="mlayout_srl">{$lang->mobile_layout}</label>
|
||||
<div class="x_controls">
|
||||
|
|
@ -180,6 +189,7 @@
|
|||
<p id="mobile_footer_text_help" class="x_help-block">{$lang->about_mobile_footer_text}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="section">
|
||||
<h1>{$lang->cmd_list_setting}</h1>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue