diff -r c72a9f9cb519 -r 16b482c153fd integration/js/edition.js --- 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){