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')) {
|
if (this.present('model.reply')) {
|
||||||
// Notify the composer messages controller that a reply has been typed. Some
|
// Notify the composer messages controller that a reply has been typed. Some
|
||||||
// messages only appear after typing.
|
// 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;
|
var self = this;
|
||||||
this.get('queuedForTyping').forEach(function (msg) {
|
this.get('queuedForTyping').forEach(function (msg) {
|
||||||
self.popup(msg);
|
self.popup(msg);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,8 +22,8 @@ Discourse.ComposerMessage.reopenClass({
|
||||||
topicId = composer.get('topic.id'),
|
topicId = composer.get('topic.id'),
|
||||||
postId = composer.get('post.id');
|
postId = composer.get('post.id');
|
||||||
|
|
||||||
if (topicId) { data.topic_id = topicId };
|
if (topicId) { data.topic_id = topicId; }
|
||||||
if (postId) { data.post_id = postId };
|
if (postId) { data.post_id = postId; }
|
||||||
|
|
||||||
return Discourse.ajax('/composer-messages', { data: data }).then(function (messages) {
|
return Discourse.ajax('/composer-messages', { data: data }).then(function (messages) {
|
||||||
return messages.map(function (message) {
|
return messages.map(function (message) {
|
||||||
|
@ -32,4 +32,4 @@ Discourse.ComposerMessage.reopenClass({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
});
|
Loading…
Reference in New Issue