fixed bug in annotation handling. popcorn-port
authorhamidouk
Tue, 17 Jan 2012 16:28:04 +0100
branchpopcorn-port
changeset 653 29282fc3b3b2
parent 652 d6e18921fab8
child 654 bf65c3364d2d
fixed bug in annotation handling.
src/js/modules/mediafragment.js
--- a/src/js/modules/mediafragment.js	Tue Jan 17 16:27:38 2012 +0100
+++ b/src/js/modules/mediafragment.js	Tue Jan 17 16:28:04 2012 +0100
@@ -30,8 +30,7 @@
                     }
                   } else if ( pageoffset.substring(0, 3) === "id=") {
                     // annotation
-                    var annotationId = pageoffset.substring( 2 );
-
+                    var annotationId = pageoffset.substring( 3 );
                     // there's no better way than that because
                     // of possible race conditions
                     this._serializer.sync(IriSP.wrap(this, function() {