diff -r a94f5c62e4d7 -r 54cd42adea33 integration/js/editor.js --- a/integration/js/editor.js Mon Dec 03 13:06:28 2012 +0100 +++ b/integration/js/editor.js Mon Dec 03 13:57:52 2012 +0100 @@ -45,6 +45,7 @@ '
<%= segments %>
' ), mashupstatus = '', + mediasegmentscache = {}, addMode, currentMedia, currentSegment; IriSP.mashupcore(project, mashup); @@ -127,7 +128,9 @@ serializer: IriSP.serializers.segmentapi }).onLoad(function() { var medias = this.getMedias(), - annotations = this.getAnnotations(); + annotations = this.getAnnotations().filter(function(annotation) { + return annotation.getDuration() > 0; + });; if (medias && medias.length) { var mediaid = medias[0].id; el = $(".item-video[data-media-id='" + mediaid + "'] .media-count"); @@ -352,8 +355,6 @@ } } - var mediasegmentscache = {}; - function setMedia(media) { if (currentMedia) { currentMedia.pause();