에디터 컴포넌트 설정 전체선택 추가

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12032 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-11-01 09:59:27 +00:00
parent fa8e01bdb5
commit a8a8684d00

View file

@ -49,10 +49,10 @@
<div class="x_control-group" cond="$mid_list"> <div class="x_control-group" cond="$mid_list">
<label class="x_control-label"> <label class="x_control-label">
{$lang->module} {$lang->module}
<input type="checkbox" />
</label> </label>
<div class="x_controls"> <div class="x_controls">
<span class="x_help-block">{$lang->about_component_mid}</span> <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)--> <!--@foreach($mid_list as $module_category_srl => $modules)-->
<!--@if(count($mid_list) > 1)--> <!--@if(count($mid_list) > 1)-->
<fieldset> <fieldset>
@ -64,7 +64,7 @@
<div id="section_{$module_category_srl}"> <div id="section_{$module_category_srl}">
<!--@foreach($modules->list as $key => $val)--> <!--@foreach($modules->list as $key => $val)-->
<label> <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}) {$key} ({$val->browser_title})
</label> </label>
<!--@end--> <!--@end-->
@ -81,3 +81,15 @@
</div> </div>
</form> </form>
</section> </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>