FIX: JSHint errors
This commit is contained in:
parent
7d9a84b496
commit
5d8cfd69f7
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ Discourse.ComposerMessagesController = Ember.ArrayController.extend({
|
|||
var self = this;
|
||||
this.get('queuedForTyping').forEach(function (msg) {
|
||||
self.popup(msg);
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -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({
|
|||
});
|
||||
}
|
||||
|
||||
})
|
||||
});
|
Loading…
Reference in New Issue