src/widgets/CreateAnnotation.js
changeset 1061 7d22bfd6b73b
parent 1050 0b287ecbc2cb
child 1066 5ef7182907c5
--- a/src/widgets/CreateAnnotation.js	Mon Sep 21 18:25:06 2015 +0200
+++ b/src/widgets/CreateAnnotation.js	Tue Sep 22 12:04:36 2015 +0200
@@ -234,7 +234,7 @@
     });
     this.$.find(".Ldt-CreateAnnotation-Close").click(function() {
         _this.close_after_send
-        ? _this.hide()
+        ? _this.player.trigger("CreateAnnotation.hide")
         : _this.showScreen("Main");
         return false;
     });
@@ -505,8 +505,8 @@
                 window.setTimeout(
                     function() {
                         _this.close_after_send
-                        ? _this.hide()
-                        : _this.show();
+                        ? _this.player.trigger("CreateAnnotation.hide")
+                        : _this.player.trigger("CreateAnnotation.show");
                     },
                     _this.after_send_timeout
                 );