Annotation Widget Bugfix
authorveltr
Fri, 16 Nov 2012 17:31:59 +0100
changeset 953 bb1b2bba5270
parent 952 818a31dbc3db
child 954 d45976cb4ff5
Annotation Widget Bugfix
src/ldt/ldt/static/ldt/metadataplayer/Annotation.js
--- a/src/ldt/ldt/static/ldt/metadataplayer/Annotation.js	Fri Nov 16 17:08:05 2012 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/Annotation.js	Fri Nov 16 17:31:59 2012 +0100
@@ -15,14 +15,16 @@
         on_site: " sur ",
         tags_: "Mots-clés :",
         description_: "Description :",
-        excerpt_from: "Extrait de :"
+        excerpt_from: "Extrait de :",
+        untitled: "Segment sans titre"
     },
     en: {
         watching: "I'm watching ",
         on_site: " on ",
         tags_: "Keywords:",
         description_: "Description:",
-        excerpt_from: "Excerpt from:"
+        excerpt_from: "Excerpt from:",
+        untitled: "Untitled segment"
     }
 }
 
@@ -93,7 +95,7 @@
         } else {
             _this.$.find(".Ldt-Annotation-Tags-Block").addClass("Ldt-Annotation-EmptyBlock");
         }
-        _this.$.find(".Ldt-Annotation-Title").html(_annotation.title);
+        _this.$.find(".Ldt-Annotation-Title").text(_annotation.title || "(" + _this.l10n.untitled + ")");
         var _desc = _annotation.description.replace(/(^\s+|\s+$)/g,'');
         if (_desc) {
             _this.$.find(".Ldt-Annotation-Description-Block").removeClass("Ldt-Annotation-EmptyBlock");