mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
에디터 컴포넌트 설정 전체선택 추가
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12032 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fa8e01bdb5
commit
a8a8684d00
1 changed files with 14 additions and 2 deletions
|
|
@ -49,10 +49,10 @@
|
|||
<div class="x_control-group" cond="$mid_list">
|
||||
<label class="x_control-label">
|
||||
{$lang->module}
|
||||
<input type="checkbox" />
|
||||
</label>
|
||||
<div class="x_controls">
|
||||
<span class="x_help-block">{$lang->about_component_mid}</span>
|
||||
<label class="checked" for="check_all"> <input id="check_all" type="checkbox"/> Check all</label>
|
||||
<!--@foreach($mid_list as $module_category_srl => $modules)-->
|
||||
<!--@if(count($mid_list) > 1)-->
|
||||
<fieldset>
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
<div id="section_{$module_category_srl}">
|
||||
<!--@foreach($modules->list as $key => $val)-->
|
||||
<label>
|
||||
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
|
||||
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
|
||||
{$key} ({$val->browser_title})
|
||||
</label>
|
||||
<!--@end-->
|
||||
|
|
@ -81,3 +81,15 @@
|
|||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<script>
|
||||
(function($){
|
||||
$('#check_all')
|
||||
.bind('click', function(e){
|
||||
if (this.checked){
|
||||
$('input[name=mid_list\\[\\]]').attr('checked', 'checked');
|
||||
}else{
|
||||
$('input[name=mid_list\\[\\]]').removeAttr('checked');
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue