Changeset 2134


Ignore:
Timestamp:
Dec 22, 2011, 10:35:31 AM (11 years ago)
Author:
tjeerd@…
Message:

Correcting a small error in the timelines (startdate not at 0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/study/createTimelineBandsJs.gsp

    r2132 r2134  
    2626            def dateMap = study.getMinMaxEventDate();
    2727        %>
     28    var strStartDate = "<g:formatDate format="yyyy/MM/dd HH:mm:ss" date="${study.startDate}"/>";
     29    startDate = new Date ( strStartDate );
     30
    2831        var firstDate = new Date ( "<g:formatDate format="yyyy/MM/dd HH:mm:ss" date="${dateMap.minDate}"/>" );
    2932        var lastDate = new Date ( "<g:formatDate format="yyyy/MM/dd HH:mm:ss" date="${dateMap.maxDate}"/>" );
     
    7881
    7982        // Make sure the date is printed using the relative time
    80         bandInfos[${bandNr}].etherPainter = new Timeline.RelativeDateEtherPainter( { theme: theme, startDate: firstDate, unit: objUnit } );
    81         bandInfos[${bandNr}].labeller = new Timeline.RelativeDateLabeller( "en", 0, firstDate );
     83        bandInfos[${bandNr}].etherPainter = new Timeline.RelativeDateEtherPainter( { theme: theme, startDate: startDate, unit: objUnit } );
     84        bandInfos[${bandNr}].labeller = new Timeline.RelativeDateLabeller( "en", 0, startDate );
    8285
    8386        bandTitleInfo[ timelineNr ][ ${bandNr} ] = {
Note: See TracChangeset for help on using the changeset viewer.