Ignore:
Timestamp:
Jan 11, 2014, 12:00:56 PM (10 years ago)
Author:
mistic100
Message:

allow to ignore a file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/plugin_lang_analysis/template/config.tpl

    r26059 r26607  
    2222  }
    2323});
     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});
    2435{/literal}{/footer_script}
    2536
     
    3445      <th>{'Core dependency'|translate}</th>
    3546      <th>{'Local dependencies'|translate}</th>
     47      <th>{'Ignore'|translate}</th>
    3648    </tr>
    3749  </thead>
     
    5668        </div>
    5769      </td>
     70      <td>
     71        <div class="switch-button ignore">
     72          <span class="item ignore {if $file.ignore}active{/if}">&times;</span>
     73          <input type="hidden" name="files[{$file.path}][ignore]" value="{if $file.ignore}true{else}false{/if}">
     74        </div>
     75      </td>
    5876    </tr>
    5977  {/foreach}
Note: See TracChangeset for help on using the changeset viewer.