Added tooltop on polemic keywords
authorveltr
Fri, 05 Oct 2012 16:35:38 +0200
changeset 828 c8126f9ce2b1
parent 827 a31e637844ed
child 832 0ffe58cb50bf
Added tooltop on polemic keywords
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"));