mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
Fix #2335 allow selecting a category as default
This commit is contained in:
parent
d3415b5e01
commit
684b86a636
11 changed files with 106 additions and 29 deletions
|
|
@ -83,6 +83,12 @@
|
|||
<label class="x_inline" for="expand"><input type="checkbox" name="expand" value="Y" id="expand" /> {$lang->about_expand}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->is_default_category}</label>
|
||||
<div class="x_controls">
|
||||
<label class="x_inline" for="is_default_category"><input type="checkbox" name="is_default" value="Y" id="is_default_category" /> {$lang->about_default_category}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_modal-footer">
|
||||
<button type="button" class="x_btn x_pull-left" data-hide="#__category_info">{$lang->cmd_close}</button>
|
||||
|
|
|
|||
|
|
@ -210,6 +210,9 @@ function modifyNode(node,e){
|
|||
if(data.category_info.expand == 'Y'){
|
||||
$w.find('input[name="expand"]').attr('checked', 'checked');
|
||||
}
|
||||
if(data.category_info.is_default == 'Y'){
|
||||
$w.find('input[name="is_default"]').attr('checked', 'checked');
|
||||
}
|
||||
});
|
||||
|
||||
$('#__parent_category_info').hide().next('.x_control-group').css('borderTop','0');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue