Merge pull request #574 from wojciechka/master
Fix URL for composer /education paths when using prefix for Discourse
This commit is contained in:
commit
d9539225f8
|
@ -132,7 +132,7 @@ Discourse.ComposerController = Discourse.Controller.extend({
|
||||||
// If visible update the text
|
// If visible update the text
|
||||||
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;
|
||||||
$.get("/education/" + educationKey).then(function(result) {
|
$.get(Discourse.getURL("/education/") + educationKey).then(function(result) {
|
||||||
composerController.set('educationContents', result);
|
composerController.set('educationContents', result);
|
||||||
});
|
});
|
||||||
}.observes('typedReply', 'content.creatingTopic', 'Discourse.currentUser.reply_count'),
|
}.observes('typedReply', 'content.creatingTopic', 'Discourse.currentUser.reply_count'),
|
||||||
|
|
Loading…
Reference in New Issue