Changeset 1756 for trunk


Ignore:
Timestamp:
Apr 12, 2011, 12:43:35 PM (9 years ago)
Author:
work@…
Message:
  • makes no sense showing a statistics box if there is nothing to show
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/home/index.gsp

    r1755 r1756  
    99        <script type="text/javascript">
    1010                $(document).ready(function() {
    11 <g:if test="${showstats}">
     11<g:if test="${showstats && studyCount}">
    1212                        Highcharts.theme = { colors: ['#4572A7'] };
    1313                        var highchartsOptions = Highcharts.getOptions();
     
    9898                        });
    9999
    100                         <g:if test="${startDate && dailyStatistics?.size()}">
     100                        <g:if test="${startDate && dailyStatistics?.size() && studyCount}">
    101101                        dailyStatistics = new Highcharts.Chart({
    102102                                chart: {
Note: See TracChangeset for help on using the changeset viewer.