diff -r 9115f9cba3a5 -r 8e016726669b integration/js/edition.js --- a/integration/js/edition.js Thu Jun 06 12:41:20 2013 +0200 +++ b/integration/js/edition.js Thu Jun 06 12:42:03 2013 +0200 @@ -1,6 +1,6 @@ -var myMedia = null, - currentChapter = null, - currentAnnotation = null, +var myMedia = undefined, + currentChapter = undefined, + currentAnnotation = undefined, chapters = [], annotations = []; @@ -9,10 +9,10 @@ var global = { colorsIndex : 0, colors : - ['#f39c12', '#2ecc71', '#3498db', '#9b59b6', - '#f1c40f', '#e67e22', '#e74c3c', - '#16a085', '#27ae60', '#2980b9', '#8e44ad', - '#d35400', '#c0392b', '#bdc3c7'] + ['#1abc9c', '#3498db', '#9b59b6', '#2ecc71', + '#f1c40f', '#ecf0f1', '#e67e22', '#e74c3c', '#95a5a6', + '#16a085', '#2980b9', '#8e44ad', '#27ae60', + '#f39c12', '#c0392b', '#bdc3c7', '#d35400', '#7f8c8d'] }; @@ -102,47 +102,57 @@ }else{ btnCutChapter.css("left",pos); } - //annotations view - var currentAnnotationsDisplay = new Array(); - $.each(annotations, function(k, v){ - - if(v.begin <= t && v.end >= t){ - currentAnnotationsDisplay.push(v.id); - if(!$('#item-current-annotation-'+v.id).length){ - var itemAnnotation = - $('