equal
deleted
inserted
replaced
232 this.$.find(".Ldt-CreateAnnotation-Cancel").click(function() { |
232 this.$.find(".Ldt-CreateAnnotation-Cancel").click(function() { |
233 _this.player.trigger("CreateAnnotation.hide"); |
233 _this.player.trigger("CreateAnnotation.hide"); |
234 }); |
234 }); |
235 this.$.find(".Ldt-CreateAnnotation-Close").click(function() { |
235 this.$.find(".Ldt-CreateAnnotation-Close").click(function() { |
236 _this.close_after_send |
236 _this.close_after_send |
237 ? _this.hide() |
237 ? _this.player.trigger("CreateAnnotation.hide") |
238 : _this.showScreen("Main"); |
238 : _this.showScreen("Main"); |
239 return false; |
239 return false; |
240 }); |
240 }); |
241 this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").click(function() { |
241 this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").click(function() { |
242 _this.addKeyword(IriSP.jQuery(this).attr("data-text")); |
242 _this.addKeyword(IriSP.jQuery(this).attr("data-text")); |
503 _this.showScreen('Saved'); /* Si l'appel a fonctionné, on affiche l'écran "Annotation enregistrée" */ |
503 _this.showScreen('Saved'); /* Si l'appel a fonctionné, on affiche l'écran "Annotation enregistrée" */ |
504 if (_this.after_send_timeout) { /* Selon les options de configuration, on revient à l'écran principal ou on ferme le widget, ou rien */ |
504 if (_this.after_send_timeout) { /* Selon les options de configuration, on revient à l'écran principal ou on ferme le widget, ou rien */ |
505 window.setTimeout( |
505 window.setTimeout( |
506 function() { |
506 function() { |
507 _this.close_after_send |
507 _this.close_after_send |
508 ? _this.hide() |
508 ? _this.player.trigger("CreateAnnotation.hide") |
509 : _this.show(); |
509 : _this.player.trigger("CreateAnnotation.show"); |
510 }, |
510 }, |
511 _this.after_send_timeout |
511 _this.after_send_timeout |
512 ); |
512 ); |
513 } |
513 } |
514 _export.getAnnotations().removeElement(_annotation, true); /* Pour éviter les doublons, on supprime l'annotation qui a été envoyée */ |
514 _export.getAnnotations().removeElement(_annotation, true); /* Pour éviter les doublons, on supprime l'annotation qui a été envoyée */ |