Merge pull request #574 from wojciechka/master

Fix URL for composer /education paths when using prefix for Discourse
This commit is contained in:
Robin Ward 2013-03-27 08:58:27 -07:00
commit d9539225f8
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ Discourse.ComposerController = Discourse.Controller.extend({
// If visible update the text
var educationKey = this.get('content.creatingTopic') ? 'new-topic' : 'new-reply';
var composerController = this;
$.get("/education/" + educationKey).then(function(result) {
$.get(Discourse.getURL("/education/") + educationKey).then(function(result) {
composerController.set('educationContents', result);
});
}.observes('typedReply', 'content.creatingTopic', 'Discourse.currentUser.reply_count'),