src/js/widgets/segmentsWidget.js
branchcalage-segmentsWidget
changeset 508 00054959ee92
parent 483 0bb36c79836c
child 509 756ecd1645a5
equal deleted inserted replaced
505:b1e442d9a1bc 508:00054959ee92
    43   
    43   
    44   var i = 0;
    44   var i = 0;
    45   var totalWidth = this.selector.width();
    45   var totalWidth = this.selector.width();
    46   var onePxPercent = 100 / totalWidth; /* the value of a pixel, in percents */
    46   var onePxPercent = 100 / totalWidth; /* the value of a pixel, in percents */
    47  
    47  
       
    48   var segments_annotations = [];
       
    49   
    48   for (i = 0; i < annotations.length; i++) {
    50   for (i = 0; i < annotations.length; i++) {
    49     var annotation = annotations[i];
    51     var annotation = annotations[i];
    50 
    52 
    51     /* filter the annotations whose type is not the one we want */
    53     /* filter the annotations whose type is not the one we want */
    52     if (view_type != "" && typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined"
    54     if (view_type != "" && typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined"