src/widgets/CreateAnnotation.js
branchnew-model
changeset 916 ec6849bbbdcc
parent 915 ba7aab923d08
child 923 b3ee7d1b472a
equal deleted inserted replaced
915:ba7aab923d08 916:ec6849bbbdcc
   257             _this.source.merge(_export);
   257             _this.source.merge(_export);
   258             _this.player.popcorn.trigger("IriSP.AnnotationsList.refresh");
   258             _this.player.popcorn.trigger("IriSP.AnnotationsList.refresh");
   259         },
   259         },
   260         error: function(_xhr, _error, _thrown) {
   260         error: function(_xhr, _error, _thrown) {
   261             IriSP.log("Error when sending annotation", _thrown);
   261             IriSP.log("Error when sending annotation", _thrown);
       
   262             _export.getAnnotations().removeElement(_annotation, true);
   262             _this.showScreen('Error');
   263             _this.showScreen('Error');
   263             window.setTimeout(function(){
   264             window.setTimeout(function(){
   264                 _this.showScreen("Main")
   265                 _this.showScreen("Main")
   265             },
   266             },
   266             (_this.close_widget_timeout || 5000));
   267             (_this.close_widget_timeout || 5000));