From a002c14c8c48b0063af76e6b798e320fc416c33a Mon Sep 17 00:00:00 2001 From: Leo Lara Date: Mon, 24 Oct 2016 20:18:28 +0200 Subject: [PATCH] Fix sent message in form --- client/clase/ampaSender.coffee | 2 ++ client/clase/tutorSender.coffee | 1 + 2 files changed, 3 insertions(+) diff --git a/client/clase/ampaSender.coffee b/client/clase/ampaSender.coffee index d5b2a31aef8e..a9da02108552 100644 --- a/client/clase/ampaSender.coffee +++ b/client/clase/ampaSender.coffee @@ -25,6 +25,7 @@ Template.ampaSender.events message = instance.find('#clase-message').value Meteor.call 'claseAMPASendMessage', school, secret, message, (err, result) -> + console.log err, result if err console.log err if err.error is 'wrong-secret' @@ -33,3 +34,4 @@ Template.ampaSender.events return else instance.error.set([]) + instance.success.set(true) diff --git a/client/clase/tutorSender.coffee b/client/clase/tutorSender.coffee index f75abc15c38e..ea19f65ba9ad 100644 --- a/client/clase/tutorSender.coffee +++ b/client/clase/tutorSender.coffee @@ -35,3 +35,4 @@ Template.tutorSender.events return else instance.error.set([]) + instance.success.set(true)