Skip to content

Commit

Permalink
Fix sent message in form
Browse files Browse the repository at this point in the history
  • Loading branch information
leolara committed Oct 24, 2016
1 parent 42c927b commit a002c14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/clase/ampaSender.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -33,3 +34,4 @@ Template.ampaSender.events
return
else
instance.error.set([])
instance.success.set(true)
1 change: 1 addition & 0 deletions client/clase/tutorSender.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ Template.tutorSender.events
return
else
instance.error.set([])
instance.success.set(true)

0 comments on commit a002c14

Please sign in to comment.