Changeset 28876 for extensions/plugin_lang_analysis/template/config.tpl
- Timestamp:
- Jun 30, 2014, 9:02:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/plugin_lang_analysis/template/config.tpl
r26607 r28876 1 {footer_script} {literal}1 {footer_script} 2 2 $('.switch-button.type span').click(function() { 3 3 $(this).siblings('span').removeClass('active'); … … 33 33 } 34 34 }); 35 {/literal}{/footer_script} 35 36 $('.folder > td > .switch-button span').click(function() { 37 $(this).removeClass('active') 38 .closest('.folder').next('.nested') 39 .find('tr:not(.folder) > td > .switch-button span[data-val="'+ $(this).data('val') +'"]') 40 .trigger('click'); 41 }); 42 {/footer_script} 36 43 37 44 <form method="POST" action="{$F_ACTION}" class="properties"> … … 39 46 <legend>{'Select dependencies'|translate}</legend> 40 47 41 <table class="files"> 42 <thead> 43 <tr> 44 <th></th> 45 <th>{'Core dependency'|translate}</th> 46 <th>{'Local dependencies'|translate}</th> 47 <th>{'Ignore'|translate}</th> 48 </tr> 49 </thead> 50 51 <tbody> 52 {foreach from=$PLA_FILES item=file} 53 <tr> 54 <td>{$file.path}</td> 55 <td> 56 <div class="switch-button type"> 57 <span class="item common {if not $file.is_admin}active{/if}">{'Common'|translate}</span> 58 <span class="item admin {if $file.is_admin}active{/if}">{'Admin'|translate}</span> 59 <input type="hidden" name="files[{$file.path}][is_admin]" value="{if $file.is_admin}true{else}false{/if}"> 60 </div> 61 </td> 62 <td> 63 <div class="switch-button other"> 64 {foreach from=$PLA_LANG_FILES item=lang_file} 65 <span class="item other {if $lang_file|in_array:$file.lang_files}active{/if}">{$lang_file}</span> 66 <input type="hidden" name="files[{$file.path}][lang_files][{$lang_file}]" value="{if $lang_file|in_array:$file.lang_files}true{else}false{/if}"> 67 {/foreach} 68 </div> 69 </td> 70 <td> 71 <div class="switch-button ignore"> 72 <span class="item ignore {if $file.ignore}active{/if}">×</span> 73 <input type="hidden" name="files[{$file.path}][ignore]" value="{if $file.ignore}true{else}false{/if}"> 74 </div> 75 </td> 76 </tr> 77 {/foreach} 78 </tbody> 79 </table> 48 {include file=$PLA_ABS_PATH|cat:'template/config_list.inc.tpl' files=$PLA_FILES level=0 path=""} 80 49 81 50 <p class="formButtons"><input type="submit" value="{'Continue'|translate}"></p>
Note: See TracChangeset
for help on using the changeset viewer.