" )
+ .data( "item.autocomplete", item )
+ .append( "" + item.label.replace(replacerx, '$1$2') + "" )
+ .appendTo( ul );
+ };
taginput.on("keyup input paste", function() {
taginput.val(taginput.val().toUpperCase());
});
$("#form_tag").on("submit", function() {
var _tagvalue = taginput.val().toUpperCase();
+ taginput.val("");
if (_tagvalue && currentSegment) {
/* Création d'une liste d'annotations contenant une annotation afin de l'envoyer au serveur */
var _exportedAnnotations = new IriSP.Model.List(directory),
@@ -177,15 +173,14 @@
_annotation.setAnnotationType(_annotationType.id);
- _annotation.title = _tagvalue;
+ _annotation.title = currentSegment.title;
_annotation.created = new Date(); /* Date de création de l'annotation */
_annotation.description = _tagvalue;
_annotation.setTags([_tag.id]); /*Liste des ids de tags */
- /* Les données créateur/date de création sont envoyées non pas dans l'annotation, mais dans le projet */
- _export.creator = "theend";
- _export.created = new Date();
+ _annotation.creator = "theend";
+ _annotation.created = new Date();
/* Ajout de l'annotation à la liste à exporter */
_exportedAnnotations.push(_annotation);
/* Ajout de la liste à exporter à l'objet Source */
@@ -299,21 +294,12 @@
}
var videoid = "video_" + media.id,
videoEl = $('