Ignore:
Timestamp:
May 28, 2010, 4:19:06 PM (12 years ago)
Author:
roberth
Message:

Implemented RELTIME parsing and showing in the wizard.
Also made TEXT templatefields to show a textarea

File:
1 edited

Legend:

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

    r467 r497  
    11
    22<%@ page import="dbnp.studycapturing.Study" %>
     3<%@ page import="dbnp.studycapturing.RelTime" %>
    34<html>
    45  <head>
     
    9495
    9596                // Load events for this eventsource (using jquery)
    96                 var event_url = '${createLink(controller:'study', action:'events', id:eventGroup.id, params: [startDate: study.startDate])}';
     97                var event_url = '${createLink(controller:'study', action:'events', id:eventGroup.id, params: [startDate: study.startDate.getTime() ])}';
    9798                $.getJSON(event_url, $.callback( _loadJSONEvents, [0, ${bandNr}, eventSources[${bandNr}], overviewEventSource, event_url] ) );
    9899
     
    389390                    sortedEvents = events.sort( { a, b ->
    390391                          a.startTime == b.startTime ?
    391                             a.getDuration().toMilliseconds() <=> b.getDuration().toMilliseconds() :
     392                            a.getDuration().getValue() <=> b.getDuration().getValue() :
    392393                            a.startTime <=> b.startTime
    393394                      } as Comparator )
     
    401402                        </td>
    402403                      </g:if>
    403                       <td>${event.getPrettyDuration(studyInstance.startDate,event.startTime)}</td>
     404                      <td>${new RelTime(event.startTime).toPrettyString()}</td>
    404405                      <td>${event.getPrettyDuration()}</td>
    405406                      <td>${event.template.name}</td>
Note: See TracChangeset for help on using the changeset viewer.