# HG changeset patch # User hamidouk # Date 1327662364 -3600 # Node ID 357fc047503bcd33ebbf011a8e10b1af14c01a6f # Parent 7ba63d0315ad2bf0fbbc575536f3e78be6b89949 redraw the widget after that an annotation has been added. diff -r 7ba63d0315ad -r 357fc047503b 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)); } };