mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: user education displays [object Object]
This commit is contained in:
parent
ac36b591e9
commit
8ebed7a4b1
@ -133,7 +133,7 @@ Discourse.ComposerController = Discourse.Controller.extend({
|
|||||||
var educationKey = this.get('content.creatingTopic') ? 'new-topic' : 'new-reply';
|
var educationKey = this.get('content.creatingTopic') ? 'new-topic' : 'new-reply';
|
||||||
var composerController = this;
|
var composerController = this;
|
||||||
Discourse.ajax("/education/" + educationKey).then(function(result) {
|
Discourse.ajax("/education/" + educationKey).then(function(result) {
|
||||||
composerController.set('educationContents', result);
|
composerController.set('educationContents', result.responseText);
|
||||||
});
|
});
|
||||||
}.observes('typedReply', 'content.creatingTopic', 'Discourse.currentUser.reply_count'),
|
}.observes('typedReply', 'content.creatingTopic', 'Discourse.currentUser.reply_count'),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user