Changeset 26607
- Timestamp:
- Jan 11, 2014, 12:00:56 PM (10 years ago)
- Location:
- extensions/plugin_lang_analysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/plugin_lang_analysis/admin.php
r26059 r26607 55 55 'path' => $file, 56 56 'is_admin' => strpos($file, '/admin') === 0 || strpos($file, 'admin.tpl') !== false, 57 'lang_files' => $default_lang_files 57 'ignore' => false, 58 'lang_files' => $default_lang_files, 58 59 ); 59 60 } … … 83 84 'path' => $file, 84 85 'is_admin' => $data['is_admin']=='true', 86 'ignore' => $data['ignore']=='true', 85 87 'lang_files' => array(), 86 88 ); … … 109 111 foreach ($files as $file => $file_data) 110 112 { 113 if ($file_data['ignore']) continue; 114 111 115 $file_strings = analyze_file($_GET['plugin_id'].$file); 112 116 -
extensions/plugin_lang_analysis/template/config.tpl
r26059 r26607 22 22 } 23 23 }); 24 25 $('.switch-button.ignore span').click(function() { 26 if ($(this).hasClass('active')) { 27 $(this).removeClass('active'); 28 $(this).next('input').val('false'); 29 } 30 else { 31 $(this).addClass('active'); 32 $(this).next('input').val('true'); 33 } 34 }); 24 35 {/literal}{/footer_script} 25 36 … … 34 45 <th>{'Core dependency'|translate}</th> 35 46 <th>{'Local dependencies'|translate}</th> 47 <th>{'Ignore'|translate}</th> 36 48 </tr> 37 49 </thead> … … 56 68 </div> 57 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> 58 76 </tr> 59 77 {/foreach} -
extensions/plugin_lang_analysis/template/style.css
r23472 r26607 30 30 .switch-button span.other.active { 31 31 background:#4CC6FF; 32 } 33 .switch-button span.ignore.active { 34 background:#ff0000; 32 35 } 33 36 .switch-button span:first-of-type {
Note: See TracChangeset
for help on using the changeset viewer.