add integration modifs
authorcavaliet
Tue, 11 Jun 2013 17:28:59 +0200
changeset 122 e3e2e611c7c4
parent 121 b7ab06d7ec3e
child 123 6a58575dcac5
add integration modifs
src/metadatacomposer/static/metadatacomposer/js/edition.js
--- a/src/metadatacomposer/static/metadatacomposer/js/edition.js	Tue Jun 11 17:13:16 2013 +0200
+++ b/src/metadatacomposer/static/metadatacomposer/js/edition.js	Tue Jun 11 17:28:59 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){