Correct list bug on empty projects
authorveltr
Tue, 11 Jun 2013 17:13:16 +0200
changeset 121 b7ab06d7ec3e
parent 120 79b8b0e8df4f
child 122 e3e2e611c7c4
Correct list bug on empty projects
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){