# HG changeset patch # User veltr # Date 1349447738 -7200 # Node ID c8126f9ce2b18d7be3f5491af69fb85bbc5df063 # Parent a31e637844ed17b36d34323868cef08f3363deee Added tooltop on polemic keywords diff -r a31e637844ed -r c8126f9ce2b1 src/ldt/ldt/static/ldt/metadataplayer/CreateAnnotation.js --- a/src/ldt/ldt/static/ldt/metadataplayer/CreateAnnotation.js Fri Oct 05 16:17:07 2012 +0200 +++ b/src/ldt/ldt/static/ldt/metadataplayer/CreateAnnotation.js Fri Oct 05 16:35:38 2012 +0200 @@ -68,7 +68,11 @@ share_on: "Share on", more_tags: "More tags", cancel: "Cancel", - close_widget: "Cacher la zone de création d'annotations" + close_widget: "Cacher la zone de création d'annotations", + "polemic++": "Agree", + "polemic--": "Disagree", + "polemic??": "Question", + "polemic==": "Reference" }, fr: { from_time: "de", @@ -89,7 +93,11 @@ share_on: "Partager sur", more_tags: "Plus de mots-clés", cancel: "Cancel", - close_widget: "Hide the annotation creating block" + close_widget: "Hide the annotation creating block", + "polemic++": "Accord", + "polemic--": "Désaccord", + "polemic??": "Question", + "polemic==": "Référence" } } @@ -218,6 +226,14 @@ _this.addKeyword(IriSP.jQuery(this).text().replace(/(^\s+|\s+$)/g,'')); return false; }); + this.$.find(".Ldt-CreateAnnotation-PolemicLi").each(function() { + var _el = IriSP.jQuery(this), + _kw = _el.text().replace(/(^\s+|\s+$)/g,''), + _msg = _this.l10n["polemic" + _kw]; + if (_msg) { + _el.attr("title",_msg); + } + }); this.$.find(".Ldt-CreateAnnotation-Description").bind("change keyup input paste", this.functionWrapper("onDescriptionChange")); if (this.show_title_field) { this.$.find(".Ldt-CreateAnnotation-Title").bind("change keyup input paste", this.functionWrapper("onTitleChange"));