diff --git a/app/assets/javascripts/discourse/controllers/composer_controller.js b/app/assets/javascripts/discourse/controllers/composer_controller.js index 156cf85e2e3..e040f094dd2 100644 --- a/app/assets/javascripts/discourse/controllers/composer_controller.js +++ b/app/assets/javascripts/discourse/controllers/composer_controller.js @@ -127,7 +127,7 @@ Discourse.ComposerController = Discourse.Controller.extend({ if (this.present('model.reply')) { // Notify the composer messages controller that a reply has been typed. Some // messages only appear after typing. - this.get('controllers.composerMessages').typedReply() + this.get('controllers.composerMessages').typedReply(); } }, diff --git a/app/assets/javascripts/discourse/controllers/composer_messages_controller.js b/app/assets/javascripts/discourse/controllers/composer_messages_controller.js index 8dfe43e420d..0b3e7fc3dbf 100644 --- a/app/assets/javascripts/discourse/controllers/composer_messages_controller.js +++ b/app/assets/javascripts/discourse/controllers/composer_messages_controller.js @@ -69,7 +69,7 @@ Discourse.ComposerMessagesController = Ember.ArrayController.extend({ var self = this; this.get('queuedForTyping').forEach(function (msg) { self.popup(msg); - }) + }); }, /** diff --git a/app/assets/javascripts/discourse/models/composer_message.js b/app/assets/javascripts/discourse/models/composer_message.js index 4381df9b4d2..fc445340efe 100644 --- a/app/assets/javascripts/discourse/models/composer_message.js +++ b/app/assets/javascripts/discourse/models/composer_message.js @@ -22,8 +22,8 @@ Discourse.ComposerMessage.reopenClass({ topicId = composer.get('topic.id'), postId = composer.get('post.id'); - if (topicId) { data.topic_id = topicId }; - if (postId) { data.post_id = postId }; + if (topicId) { data.topic_id = topicId; } + if (postId) { data.post_id = postId; } return Discourse.ajax('/composer-messages', { data: data }).then(function (messages) { return messages.map(function (message) { @@ -32,4 +32,4 @@ Discourse.ComposerMessage.reopenClass({ }); } -}) \ No newline at end of file +}); \ No newline at end of file