--- a/server/src/remie/static/remie/metadataplayer/CreateAnnotation.css Thu Jul 23 18:28:45 2015 +0200
+++ b/server/src/remie/static/remie/metadataplayer/CreateAnnotation.css Thu Jul 30 18:35:54 2015 +0200
@@ -43,7 +43,8 @@
color: #ff3b77
}
-.Ldt-CreateAnnotation-Submit {
+.Ldt-CreateAnnotation-Submit,
+.Ldt-CreateAnnotation-Cancel{
position: absolute;
bottom: 7px;
right: 7px;
--- a/server/src/remie/static/remie/metadataplayer/CreateAnnotation.js Thu Jul 23 18:28:45 2015 +0200
+++ b/server/src/remie/static/remie/metadataplayer/CreateAnnotation.js Thu Jul 30 18:35:54 2015 +0200
@@ -61,6 +61,7 @@
to_time: "to",
at_time: "at",
submit: "Submit",
+ cancel: "Cancel",
add_keywords_: "Add keywords:",
add_polemic_keywords_: "Add polemic attributes :",
your_name_: "Your name:",
@@ -82,6 +83,7 @@
to_time: "à",
at_time: "à",
submit: "Envoyer",
+ cancel: "Annuler",
add_keywords_: "Ajouter des mots-clés\u00a0:",
add_polemic_keywords_: "Ajouter des attributs polémiques\u00a0:",
your_name_: "Votre nom\u00a0:",
@@ -113,6 +115,7 @@
+ '<textarea class="Ldt-CreateAnnotation-Description empty" placeholder="{{l10n.type_description}}"></textarea>'
+ '<div class="Ldt-CreateAnnotation-Avatar"><img src="{{creator_avatar}}" title="{{creator_name}}"></img></div>'
+ '<input type="submit" class="Ldt-CreateAnnotation-Submit" value="{{l10n.submit}}" />'
+ + '<input type="button" class="Ldt-CreateAnnotation-Cancel" value="{{l10n.cancel}}" />'
+ '{{#show_mic_record}}<div class="Ldt-CreateAnnotation-RecBlock"><div class="Ldt-CreateAnnotation-RecLabel">Add voice annotation</div>'
+ ' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="220" height="160">'
+ ' <param name="movie" value="{{record_swf}}" />'
@@ -224,6 +227,9 @@
}
});
}
+ this.$.find(".Ldt-CreateAnnotation-Cancel").click(function() {
+ _this.player.trigger("CreateAnnotation.hide");
+ });
this.$.find(".Ldt-CreateAnnotation-Close").click(function() {
_this.close_after_send
? _this.hide()