equal
deleted
inserted
replaced
66 annotation_saved: "Thank you, your annotation has been saved.", |
66 annotation_saved: "Thank you, your annotation has been saved.", |
67 share_annotation: "Would you like to share it on social networks ?", |
67 share_annotation: "Would you like to share it on social networks ?", |
68 share_on: "Share on", |
68 share_on: "Share on", |
69 more_tags: "More tags", |
69 more_tags: "More tags", |
70 cancel: "Cancel", |
70 cancel: "Cancel", |
71 close_widget: "Cacher la zone de création d'annotations" |
71 close_widget: "Cacher la zone de création d'annotations", |
|
72 "polemic++": "Agree", |
|
73 "polemic--": "Disagree", |
|
74 "polemic??": "Question", |
|
75 "polemic==": "Reference" |
72 }, |
76 }, |
73 fr: { |
77 fr: { |
74 from_time: "de", |
78 from_time: "de", |
75 to_time: "à", |
79 to_time: "à", |
76 at_time: "à", |
80 at_time: "à", |
87 annotation_saved: "Merci, votre annotation a été enregistrée.", |
91 annotation_saved: "Merci, votre annotation a été enregistrée.", |
88 share_annotation: "Souhaitez-vous la partager sur les réseaux sociaux ?", |
92 share_annotation: "Souhaitez-vous la partager sur les réseaux sociaux ?", |
89 share_on: "Partager sur", |
93 share_on: "Partager sur", |
90 more_tags: "Plus de mots-clés", |
94 more_tags: "Plus de mots-clés", |
91 cancel: "Cancel", |
95 cancel: "Cancel", |
92 close_widget: "Hide the annotation creating block" |
96 close_widget: "Hide the annotation creating block", |
|
97 "polemic++": "Accord", |
|
98 "polemic--": "Désaccord", |
|
99 "polemic??": "Question", |
|
100 "polemic==": "Référence" |
93 } |
101 } |
94 } |
102 } |
95 |
103 |
96 IriSP.Widgets.CreateAnnotation.prototype.template = |
104 IriSP.Widgets.CreateAnnotation.prototype.template = |
97 '{{#show_slice}}<div class="Ldt-CreateAnnotation-Slice"></div>{{/show_slice}}' |
105 '{{#show_slice}}<div class="Ldt-CreateAnnotation-Slice"></div>{{/show_slice}}' |
216 }); |
224 }); |
217 this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").click(function() { |
225 this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").click(function() { |
218 _this.addKeyword(IriSP.jQuery(this).text().replace(/(^\s+|\s+$)/g,'')); |
226 _this.addKeyword(IriSP.jQuery(this).text().replace(/(^\s+|\s+$)/g,'')); |
219 return false; |
227 return false; |
220 }); |
228 }); |
|
229 this.$.find(".Ldt-CreateAnnotation-PolemicLi").each(function() { |
|
230 var _el = IriSP.jQuery(this), |
|
231 _kw = _el.text().replace(/(^\s+|\s+$)/g,''), |
|
232 _msg = _this.l10n["polemic" + _kw]; |
|
233 if (_msg) { |
|
234 _el.attr("title",_msg); |
|
235 } |
|
236 }); |
221 this.$.find(".Ldt-CreateAnnotation-Description").bind("change keyup input paste", this.functionWrapper("onDescriptionChange")); |
237 this.$.find(".Ldt-CreateAnnotation-Description").bind("change keyup input paste", this.functionWrapper("onDescriptionChange")); |
222 if (this.show_title_field) { |
238 if (this.show_title_field) { |
223 this.$.find(".Ldt-CreateAnnotation-Title").bind("change keyup input paste", this.functionWrapper("onTitleChange")); |
239 this.$.find(".Ldt-CreateAnnotation-Title").bind("change keyup input paste", this.functionWrapper("onTitleChange")); |
224 } |
240 } |
225 if (this.show_creator_field) { |
241 if (this.show_creator_field) { |
335 |
351 |
336 /* Fonction effectuant l'envoi des annotations */ |
352 /* Fonction effectuant l'envoi des annotations */ |
337 IriSP.Widgets.CreateAnnotation.prototype.onSubmit = function() { |
353 IriSP.Widgets.CreateAnnotation.prototype.onSubmit = function() { |
338 /* Si les champs obligatoires sont vides, on annule l'envoi */ |
354 /* Si les champs obligatoires sont vides, on annule l'envoi */ |
339 if (!this.onDescriptionChange() || (this.show_title_field && !this.onTitleChange()) || (this.show_creator_field && !this.onCreatorChange())) { |
355 if (!this.onDescriptionChange() || (this.show_title_field && !this.onTitleChange()) || (this.show_creator_field && !this.onCreatorChange())) { |
340 return; |
356 return false; |
341 } |
357 } |
342 |
358 |
343 if (this.recorder) { |
359 if (this.recorder) { |
344 this.recorder.stopRecord(); |
360 this.recorder.stopRecord(); |
345 } |
361 } |