# HG changeset patch # User cavaliet # Date 1405438395 -7200 # Node ID 63a77682d8da7f019e4a7848eb0ba7bf3aeaa194 # Parent 6b3feda4a0b4d3316c5c98baa23c97e9479b01ce v0.5.27 correct player diff -r 6b3feda4a0b4 -r 63a77682d8da src/spel/__init__.py --- a/src/spel/__init__.py Tue Jul 15 17:06:30 2014 +0200 +++ b/src/spel/__init__.py Tue Jul 15 17:33:15 2014 +0200 @@ -1,4 +1,4 @@ -VERSION = (0, 5, 26, "final", 0) +VERSION = (0, 5, 27, "final", 0) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) diff -r 6b3feda4a0b4 -r 63a77682d8da src/spel/static/spel/metadataplayer/SpelSyncHtml.js --- a/src/spel/static/spel/metadataplayer/SpelSyncHtml.js Tue Jul 15 17:06:30 2014 +0200 +++ b/src/spel/static/spel/metadataplayer/SpelSyncHtml.js Tue Jul 15 17:33:15 2014 +0200 @@ -17,8 +17,13 @@ basesrc = this.src.replace(/#.*$/,''); this.getWidgetAnnotations().forEach(function(a) { a.on("enter", function() { - if (a.content && a.content.data && a.content.data.ref_text) { - frame.src = basesrc + '#' + a.content.data.ref_text; + if (a.keywords && a.keywords.hasOwnProperty("length")) { + var nb = a.keywords.length; + for(var i=0;i