src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 479 24308670f1bb
parent 477 1e51d638e7ea
child 483 0bb36c79836c
--- a/src/js/widgets/segmentsWidget.js	Mon Dec 19 12:08:50 2011 +0100
+++ b/src/js/widgets/segmentsWidget.js	Mon Dec 19 12:30:36 2011 +0100
@@ -80,9 +80,11 @@
       var color = annotation.color;
     
     var hexa_color = IriSP.DEC_HEXA_COLOR(color);
-    
+
     if (hexa_color === "FFCC00")
       hexa_color = "333";
+    if (hexa_color.length == 4)
+      hexa_color = hexa_color + '00';
     
     var annotationTemplate = Mustache.to_html(IriSP.annotation_template,
         {"divTitle" : divTitle, "id" : id, "startPourcent" : startPourcent,