src/widgets/AnnotationsList.js
changeset 963 d58d0dcdb640
parent 959 ee11ed1b739e
child 965 eadb7290c325
--- a/src/widgets/AnnotationsList.js	Wed Sep 19 14:11:49 2012 +0900
+++ b/src/widgets/AnnotationsList.js	Wed Sep 19 14:59:35 2012 +0900
@@ -91,7 +91,6 @@
     var _currentTime = this.media.getCurrentTime(),
         _duration = this.media.duration;
     this.lastAjaxQuery = _currentTime;
-    _currentTime = Math.floor(1000 * _currentTime);
     var _url = Mustache.to_html(this.ajax_url, {
         media : this.source.currentMedia.id,
         begin : Math.max(0, _currentTime - this.ajax_granularity),
@@ -252,7 +251,7 @@
         if (this.mashupMode) {
             this.ajaxMashup();
         } else {
-            if (Math.abs(_currentTime - this.lastAjaxQuery) > (this.ajax_granularity / 2000)) {
+            if (Math.abs(_currentTime - this.lastAjaxQuery) > (this.ajax_granularity)) {
                 this.ajaxSource();
             }
         }