# HG changeset patch # User veltr # Date 1354539472 -3600 # Node ID 54cd42adea33fcf920fa89abeb81b48090610602 # Parent a94f5c62e4d767c86fbff34221a783e8dd065076 Minor changes diff -r a94f5c62e4d7 -r 54cd42adea33 integration/home.html --- a/integration/home.html Mon Dec 03 13:06:28 2012 +0100 +++ b/integration/home.html Mon Dec 03 13:57:52 2012 +0100 @@ -213,11 +213,10 @@ /* IF NOT CONNECTED */ $(function() { $("a[href='edition.html']").click(function() { - console.log("Arghl"); - $(".user.login").show(); + $("#user").show(); return false; }); - }) + }); /* END IF */ 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(); diff -r a94f5c62e4d7 -r 54cd42adea33 src/hashcut/static/hashcut/js/hashcut.js --- a/src/hashcut/static/hashcut/js/hashcut.js Mon Dec 03 13:06:28 2012 +0100 +++ b/src/hashcut/static/hashcut/js/hashcut.js Mon Dec 03 13:57:52 2012 +0100 @@ -2276,6 +2276,7 @@ '
<%= segments %>
' ), mashupstatus = '', + mediasegmentscache = {}, addMode, currentMedia, currentSegment; IriSP.mashupcore(project, mashup); @@ -2358,7 +2359,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"); @@ -2583,8 +2586,6 @@ } } - var mediasegmentscache = {}; - function setMedia(media) { if (currentMedia) { currentMedia.pause(); diff -r a94f5c62e4d7 -r 54cd42adea33 src/hashcut/templates/mashup_home.html --- a/src/hashcut/templates/mashup_home.html Mon Dec 03 13:06:28 2012 +0100 +++ b/src/hashcut/templates/mashup_home.html Mon Dec 03 13:57:52 2012 +0100 @@ -97,7 +97,7 @@

Comment faire ?