src/widgets/CurrentSegmentInfobox.js
changeset 1062 f8adaa2caecb
parent 1060 3a4f2217a04f
child 1064 b9c816d95ab0
equal deleted inserted replaced
1061:7d22bfd6b73b 1062:f8adaa2caecb
   264             _this.$.html(Mustache.to_html(_this.template, _data))
   264             _this.$.html(Mustache.to_html(_this.template, _data))
   265             if(_this.editable_segments&&_this.currentSegment){
   265             if(_this.editable_segments&&_this.currentSegment){
   266                 _this.$.find(".Ldt-CurrentSegmentInfobox").click(_this.functionWrapper("enableEditMode"));             
   266                 _this.$.find(".Ldt-CurrentSegmentInfobox").click(_this.functionWrapper("enableEditMode"));             
   267             }
   267             }
   268             _this.$.toggleClass("editing", false);
   268             _this.$.toggleClass("editing", false);
   269             _this.player.trigger("AnnotationsList.refresh"); /* On force le rafraîchissement du widget AnnotationsList */
       
   270         },
   269         },
   271         error: function(_xhr, _error, _thrown) {
   270         error: function(_xhr, _error, _thrown) {
   272             IriSP.log("Error when sending annotation", _thrown);
   271             IriSP.log("Error when sending annotation", _thrown);
   273             _export.getAnnotations().removeElement(_annotation, true);
   272             _export.getAnnotations().removeElement(_annotation, true);
   274         }
   273         }