src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 479 24308670f1bb
parent 477 1e51d638e7ea
child 483 0bb36c79836c
equal deleted inserted replaced
478:1422ba0fc333 479:24308670f1bb
    78       var color = annotation.content.color;
    78       var color = annotation.content.color;
    79     else
    79     else
    80       var color = annotation.color;
    80       var color = annotation.color;
    81     
    81     
    82     var hexa_color = IriSP.DEC_HEXA_COLOR(color);
    82     var hexa_color = IriSP.DEC_HEXA_COLOR(color);
    83     
    83 
    84     if (hexa_color === "FFCC00")
    84     if (hexa_color === "FFCC00")
    85       hexa_color = "333";
    85       hexa_color = "333";
       
    86     if (hexa_color.length == 4)
       
    87       hexa_color = hexa_color + '00';
    86     
    88     
    87     var annotationTemplate = Mustache.to_html(IriSP.annotation_template,
    89     var annotationTemplate = Mustache.to_html(IriSP.annotation_template,
    88         {"divTitle" : divTitle, "id" : id, "startPourcent" : startPourcent,
    90         {"divTitle" : divTitle, "id" : id, "startPourcent" : startPourcent,
    89         "endPourcent" : endPourcent, "hexa_color" : hexa_color,
    91         "endPourcent" : endPourcent, "hexa_color" : hexa_color,
    90         "seekPlace" : Math.round(begin/1000)});
    92         "seekPlace" : Math.round(begin/1000)});