src/widgets/Tagger.js
changeset 961 e1baacb52075
parent 957 4da0a5740b6c
child 965 eadb7290c325
equal deleted inserted replaced
956:7c1d08cf6956 961:e1baacb52075
   128                     _this.source.merge(_export);
   128                     _this.source.merge(_export);
   129                     if (_this.pause_on_write && _this.player.popcorn.media.paused) {
   129                     if (_this.pause_on_write && _this.player.popcorn.media.paused) {
   130                         _this.player.popcorn.play();
   130                         _this.player.popcorn.play();
   131                     }
   131                     }
   132                     /* On force le rafraîchissement du widget AnnotationsList */
   132                     /* On force le rafraîchissement du widget AnnotationsList */
   133                     _this.player.popcorn.trigger("IriSP.AnnotationsList.refresh");
   133                     _this.player.trigger("AnnotationsList.refresh");
   134                 },
   134                 },
   135                 error: function(_xhr, _error, _thrown) {
   135                 error: function(_xhr, _error, _thrown) {
   136                     console.log("Error when sending annotation", _thrown);
   136                     console.log("Error when sending annotation", _thrown);
   137                     _export.getAnnotations().removeElement(_annotation, true);
   137                     _export.getAnnotations().removeElement(_annotation, true);
   138                 }
   138                 }