# HG changeset patch # User veltr # Date 1370963596 -7200 # Node ID b7ab06d7ec3e9a41af192e2190d98870e78f960b # Parent 79b8b0e8df4f20bca33e99ef1559b41a4cf891b2 Correct list bug on empty projects diff -r 79b8b0e8df4f -r b7ab06d7ec3e integration/js/edition.js --- a/integration/js/edition.js Tue Jun 11 17:06:54 2013 +0200 +++ b/integration/js/edition.js Tue Jun 11 17:13:16 2013 +0200 @@ -46,6 +46,8 @@ } else { chapterAnnType = anntypes[0]; } + + chapterAnnType.media = myMedia; chapters = chapterAnnType.getAnnotations(); if(!chapters.length){ @@ -72,6 +74,8 @@ } else { annotationsAnnType = anntypes[0]; } + + annotationsAnnType.media = myMedia; annotations = annotationsAnnType.getAnnotations(); $.each(annotations, function(k, v){