src/js/modules/mediafragment.js
branchpopcorn-port
changeset 649 dc5109512123
parent 647 2984fbbcbe35
child 653 29282fc3b3b2
--- a/src/js/modules/mediafragment.js	Tue Jan 17 14:49:43 2012 +0100
+++ b/src/js/modules/mediafragment.js	Tue Jan 17 16:00:24 2012 +0100
@@ -28,7 +28,7 @@
                     var offsettime = pageoffset.substring( 2 );
                     this._Popcorn.currentTime( parseFloat( offsettime ) );
                     }
-                  } else if ( pageoffset.substring(0, 2) === "a=") {
+                  } else if ( pageoffset.substring(0, 3) === "id=") {
                     // annotation
                     var annotationId = pageoffset.substring( 2 );
 
@@ -66,7 +66,7 @@
   }
   
   splitArr = window.location.href.split( "#" )
-  history.replaceState( {}, "", splitArr[0] + "#a=" + annotationId);
+  history.replaceState( {}, "", splitArr[0] + "#id=" + annotationId);
  
   window.setTimeout(function() { _this.mutex = false }, 50);
 };