# HG changeset patch # User veltr # Date 1354624261 -3600 # Node ID 213e81430f7a66b295cf38f154e97274f8dbb912 # Parent c16dbaa98389f91fc0b2bccade9cf5a49618249b Removed Duration while we don't have it diff -r c16dbaa98389 -r 213e81430f7a integration/js/editor.js --- a/integration/js/editor.js Mon Dec 03 16:00:01 2012 +0100 +++ b/integration/js/editor.js Tue Dec 04 13:31:01 2012 +0100 @@ -46,7 +46,9 @@ ), mashupstatus = '', mediasegmentscache = {}, - addMode, currentMedia, currentSegment; + mashupModeAfterSave = false, + addMode = false, + currentMedia, currentSegment; IriSP.mashupcore(project, mashup); @@ -521,10 +523,14 @@ mashup.trigger("change"); var segment = mashup.getAnnotation(currentSegment); currentSegment = undefined; - setMedia(mashup); - if (segment) { - mashup.setCurrentTime(segment.begin); - mashup.trigger("enter-annotation",segment); + if (mashupModeAfterSave) { + setMedia(mashup); + if (segment) { + mashup.setCurrentTime(segment.begin); + mashup.trigger("enter-annotation",segment); + } + } else { + } } return false; @@ -626,6 +632,7 @@ var currentItem = $(this).parents(".item-video"), media = project.getElement(currentItem.attr("data-media-id")), segment = project.getElement(currentItem.attr("data-segment-id")); + mashupModeAfterSave = !!(currentMedia === mashup); currentSegment = segment; setMedia(media); return false; @@ -731,6 +738,7 @@ $(".mashup-description .edit").click(function() { if (mashup.currentAnnotation) { + mashupModeAfterSave = !!(currentMedia === mashup); currentSegment = mashup.currentAnnotation.annotation; setMedia(mashup.currentAnnotation.getMedia()); } diff -r c16dbaa98389 -r 213e81430f7a src/hashcut/templates/mashup_all_mashups.html --- a/src/hashcut/templates/mashup_all_mashups.html Mon Dec 03 16:00:01 2012 +0100 +++ b/src/hashcut/templates/mashup_all_mashups.html Tue Dec 04 13:31:01 2012 +0100 @@ -53,7 +53,7 @@ {% for m in results.object_list %}
{% thumbnail m.project.image "302x202" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %} par {{ m.creator }} | 02:24

+

{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %} par {{ m.creator }}

{% endfor %} diff -r c16dbaa98389 -r 213e81430f7a src/hashcut/templates/mashup_home.html --- a/src/hashcut/templates/mashup_home.html Mon Dec 03 16:00:01 2012 +0100 +++ b/src/hashcut/templates/mashup_home.html Tue Dec 04 13:31:01 2012 +0100 @@ -61,13 +61,13 @@
{% if m1 %} {% thumbnail m1.project.image "302x202" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{{ m1.project.title }} par {{ m1.creator }} | 02:24

+

{{ m1.project.title }} par {{ m1.creator }}

{% endif %}
{% if m2 %} {% thumbnail m2.project.image "302x202" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{{ m2.project.title }} par {{ m2.creator }} | 02:24

+

{{ m2.project.title }} par {{ m2.creator }}

{% endif %}
@@ -77,7 +77,7 @@ {% for m in mashups %}
{% thumbnail m.project.image "142x95" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %} par {{ m.creator }} | 02:24

+

{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %} par {{ m.creator }}

{% endfor %} diff -r c16dbaa98389 -r 213e81430f7a src/hashcut/templates/mashup_profile.html --- a/src/hashcut/templates/mashup_profile.html Mon Dec 03 16:00:01 2012 +0100 +++ b/src/hashcut/templates/mashup_profile.html Tue Dec 04 13:31:01 2012 +0100 @@ -39,7 +39,7 @@ {% for m in mashups %}
{% thumbnail m.project.image "302x202" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %} par {{ m.creator }} | 02:24

+

{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %}

{% endfor %}