src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 687 3583e8b447f5
parent 638 1cbe440312e1
child 771 0a5194b39ffb
equal deleted inserted replaced
686:f1dbe6a6e740 687:3583e8b447f5
    90       var pxWidth = endPixel - startPixel -1;
    90       var pxWidth = endPixel - startPixel -1;
    91     else
    91     else
    92       /* the last segment has no segment following it */
    92       /* the last segment has no segment following it */
    93       var pxWidth = endPixel - startPixel;
    93       var pxWidth = endPixel - startPixel;
    94  
    94  
    95     var divTitle = (annotation.content.title + " - " + annotation.content.description).substr(0,55);
    95     var divTitle = IriSP.clean_substr(annotation.content.title + " -<br>" + annotation.content.description, 0, 132) + "...";
    96 
    96 
    97     if (typeof(annotation.content.color) !== "undefined")
    97     if (typeof(annotation.content.color) !== "undefined")
    98       var color = annotation.content.color;
    98       var color = annotation.content.color;
    99     else
    99     else
   100       var color = annotation.color;
   100       var color = annotation.color;