redraw the widget after that an annotation has been added. popcorn-port
authorhamidouk
Fri, 27 Jan 2012 12:06:04 +0100
branchpopcorn-port
changeset 730 357fc047503b
parent 729 7ba63d0315ad
child 731 e02f43299022
redraw the widget after that an annotation has been added.
src/js/widgets/annotationsListWidget.js
--- a/src/js/widgets/annotationsListWidget.js	Fri Jan 27 11:29:03 2012 +0100
+++ b/src/js/widgets/annotationsListWidget.js	Fri Jan 27 12:06:04 2012 +0100
@@ -183,6 +183,8 @@
     this._Popcorn.listen("seeked", IriSP.wrap(this, this.ajaxRedraw));
     this._Popcorn.listen("loadedmetadata", IriSP.wrap(this, this.ajaxRedraw));
     this._Popcorn.listen("paused", IriSP.wrap(this, this.ajaxRedraw));
+    
+    this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, this.ajaxRedraw));
   }
 
 };