source: timingandestimationplugin/branches/trac0.12-Permissions/timingandestimationplugin/htdocs/report_filter.js

Last change on this file was 12966, checked in by Russ Tyndall, 10 years ago

remove hours/work summary reports from the view-tickets screen re #11005

File size: 553 bytes
Line 
1
2// not exactly sure why this is required, but it didnt work in two
3// browsers before adding it and it did after
4window.setTimeout(function(){
5  jQuery(document).ready(function(){
6    // trac.12
7    jQuery('.reports > tbody > tr').each(function(){
8      if($(this).text().indexOf('Ticket Hours')>0
9         || $(this).text().indexOf('Work Summary')>0
10        ) $(this).detach();
11    });
12    //trac1.0
13    jQuery('.reports > div.collapsed').each(function(){
14      if($(this).text().indexOf('Management Screen')>0) $(this).detach();
15    });
16  });
17},250);
Note: See TracBrowser for help on using the repository browser.