Ignore:
Timestamp:
Nov 25, 2010, 5:26:07 PM (10 years ago)
Author:
robert@…
Message:

Updated the events timeline in the study view, according to ticket #72

File:
1 edited

Legend:

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

    r1201 r1203  
    3939    <script src="${resource(dir: 'js', file: 'timeline-simile/timeline-api.js')}" type="text/javascript"></script>
    4040    <script src="${resource(dir: 'js', file: 'timeline-simile/custom-timeline.js')}" type="text/javascript"></script>
     41    <script src="${resource(dir: 'js', file: 'timeline-simile/relative-time.js')}" type="text/javascript"></script>
    4142    <script src="${resource(dir: 'js', file: 'jquery-callback-1.2.js')}" type="text/javascript"></script>
    4243
     
    8081                        theme:          theme
    8182                     });
     83
     84                          // Make sure the date is printed using the relative time
     85              bandInfos[${bandNr}].etherPainter = new Timeline.RelativeDateEtherPainter( { theme: theme, startDate: firstDate, unit: Timeline.DateTime.DAY } );
     86                          bandInfos[${bandNr}].labeller = new Timeline.RelativeDateLabeller( "en", 0, firstDate );
     87
    8288              bandTitleInfo[ timelineNr ][ ${bandNr} ] = {
    8389                title: "${study.title}",
Note: See TracChangeset for help on using the changeset viewer.