" )
+ .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),
@@ -191,15 +186,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 */
@@ -292,7 +286,7 @@
currentMedia.setCurrentTime(currentSegment.begin);
if (!currentMedia.loaded) {
$(".video-wait").show();
- $("#btnPlayPause, .video-wait, #progressBar .ui-slider-handle").removeClass("pause");
+ $("#btnPlayPause, .video-wait").removeClass("pause");
}
currentMedia.play();
}
@@ -301,11 +295,11 @@
var vals = _(currentSegment.__tags).values(),
max = Math.max.apply(Math, vals),
min = Math.min(max - 1, Math.min.apply(Math, vals)),
- b = 128 / (max - min);
+ b = 160 / (max - min);
var html = _(currentSegment.__tags)
.chain()
.map(function(v, k) {
- var c = Math.floor( 127 + (v - min) * b );
+ var c = Math.floor( 95 + (v - min) * b );
return '