integration/js/edition.js
changeset 18 16b482c153fd
parent 16 c66274d0d850
child 21 abd04f346dbe
--- a/integration/js/edition.js	Thu May 16 17:43:27 2013 +0200
+++ b/integration/js/edition.js	Thu May 16 18:03:54 2013 +0200
@@ -4,10 +4,9 @@
     diaporama : null,
     idAnnotation : null
 },
-chapitres = {},
-annotations = {};
+chapitres = [],
+annotations = [];
 
-//onLoad
 myProject.onLoad(function() {
 
     $(".project-title").text(myProject.title);
@@ -40,7 +39,7 @@
             btnCutChapter.css("left",pos);
         }
             
-    });
+    });//timeupdate
     
 });//myProject.onLoad
 
@@ -131,7 +130,7 @@
         $('.project-title').html($(this).val());
     });
 
-//chapter
+//--chapter
     $('.list-chapter-wrap').on('click', '.edit-chapter', function(e){
         e.preventDefault();
         var viewChapter = {
@@ -161,6 +160,9 @@
         });
     });
 
+    function addChapter(data){
+
+    }
     
     //edit annotation
     $('#list-annotations').on('click', 'a.btn-edit-annotation', function(e){