# HG changeset patch # User veltr # Date 1353083519 -3600 # Node ID bb1b2bba5270cdc136cf77ecf8376f0acbe692e9 # Parent 818a31dbc3db7b9eb151d5cd8f76a24ab6724d49 Annotation Widget Bugfix diff -r 818a31dbc3db -r bb1b2bba5270 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");