src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 642 37693f217f8c
parent 629 b13bcfd2f9b1
child 674 835f5f454595
--- a/src/js/widgets/annotationsListWidget.js	Mon Jan 16 17:24:57 2012 +0100
+++ b/src/js/widgets/annotationsListWidget.js	Mon Jan 16 17:25:19 2012 +0100
@@ -60,7 +60,7 @@
   }
   
   var idList = IriSP.underscore.pluck(list, "id").sort();
-  
+
   if (idList.length !== this.__oldList.length) {
     this.do_redraw(list);
   }
@@ -91,7 +91,7 @@
 IriSP.AnnotationsListWidget.prototype.draw = function() {
 
   this.drawList();
-  this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, function() { this.redraw(true); }));
+  this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, function() { this.drawList(true); }));
   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.redraw));
 };