Changeset 688

Show
Ignore:
Timestamp:
2005-01-20 07:07:34 (4 years ago)
Author:
andre
Message:

AnnodexFirefoxExtension:

  • Pressing the Back button now takes you to 2 seconds before the location where you initiated the hyperlink
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AnnodexFirefoxExtension/trunk/chrome/afeview/content/afeview.js

    r687 r688  
    748748  href = href.replace(/\?t\=/, "#"); 
    749749 
    750   var timeInSeconds = MediaEngine.getTimeInSeconds(); 
     750  // Store a URL with a timed URI 2 seconds before the user followed the 
     751  // hyperlink, so we get a bit of context back.  (This improves usability 
     752  // for me, anyway ...) 
     753  var timeInSeconds = MediaEngine.getTimeInSeconds() - 2; 
     754  if (timeInSeconds < 0) timeInSeconds = 0; 
    751755  var currentURL = document.location.href.replace(/#.*$/, "") + "#" + timeInSeconds; 
    752756