cleanly the segments title. popcorn-port
authorhamidouk
Fri, 20 Jan 2012 12:21:07 +0100
branchpopcorn-port
changeset 687 3583e8b447f5
parent 686 f1dbe6a6e740
child 688 76953dd536de
cleanly the segments title.
src/js/widgets/segmentsWidget.js
--- a/src/js/widgets/segmentsWidget.js	Fri Jan 20 12:20:51 2012 +0100
+++ b/src/js/widgets/segmentsWidget.js	Fri Jan 20 12:21:07 2012 +0100
@@ -92,7 +92,7 @@
       /* the last segment has no segment following it */
       var pxWidth = endPixel - startPixel;
  
-    var divTitle = (annotation.content.title + " - " + annotation.content.description).substr(0,55);
+    var divTitle = IriSP.clean_substr(annotation.content.title + " -<br>" + annotation.content.description, 0, 132) + "...";
 
     if (typeof(annotation.content.color) !== "undefined")
       var color = annotation.content.color;