Update the taglib to use a passed in src attribute for Timeline constructions
authorJosh Reed <jareed@andrill.org>
Wed Mar 19 17:53:30 2008 -0500 (4 years ago)
changeset 2faafd83ba160
parent 1 cf1a3af4fe02
child 3 85fe45f6da8b
Update the taglib to use a passed in src attribute for Timeline constructions
grails-app/taglib/SimileTagLib.groovy
     1.1 --- a/grails-app/taglib/SimileTagLib.groovy	Fri Mar 14 09:23:30 2008 -0500
     1.2 +++ b/grails-app/taglib/SimileTagLib.groovy	Wed Mar 19 17:53:30 2008 -0500
     1.3 @@ -68,7 +68,7 @@
     1.4              bandInfos[1].highlight = true;
     1.5              
     1.6              tl = Timeline.create(document.getElementById("${attrs?.element}"), bandInfos, Timeline.HORIZONTAL${unitType == "" ? "" : ", " + unitType});
     1.7 -            tl.loadXML("${request?.contextPath}/timeline/eventsXML/${timeline.id}", function(xml, url) {
     1.8 +            tl.loadXML("${attrs.src}", function(xml, url) {
     1.9                  eventSource.loadXML(xml, url);
    1.10              });
    1.11          }