# HG changeset patch # User hamidouk # Date 1328177209 -3600 # Node ID bd186f8156e18e804d8e404234a4449a09f0e77a # Parent 499eca233839411976af48f251e39bd53495da5c new player version. diff -r 499eca233839 -r bd186f8156e1 src/ldt/ldt/static/ldt/js/LdtPlayer-release.js --- a/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Wed Feb 01 14:34:43 2012 +0100 +++ b/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Thu Feb 02 11:06:49 2012 +0100 @@ -1092,7 +1092,7 @@ IriSP.annotation_loading_template = "{{! template shown while the annotation widget is loading }}
{{/cinecast_version}}
{{/cinecast_version}}
You must enter text to submit an annotation
"; IriSP.overlay_marker_template = "{{! the template for the small bars which is z-indexed over our segment widget }}"; @@ -2949,7 +2949,6 @@ code = {start: annotation.begin / 1000, end: annotation.end / 1000, onStart: function(annotation) { return function() { - console.log("runned ?", annotation); if (typeof(annotation.content) !== "undefined") _this.selector.find(".Ldt-createAnnotation-Title").html(annotation.content.title); @@ -3180,7 +3179,11 @@ annotation.content["data"] = contents; var meta = apiJson["meta"]; - meta.creator = "An User"; + if (!IriSP.null_or_undefined(IriSP.user) && !IriSP.null_or_undefined(IriSP.user.name)) + meta.creator = IriSP.user.name; + else + meta.creator = "An User"; + meta.created = Date().toString(); annotation["tags"] = [];