Fixed URL for composer /education paths

This commit is contained in:
Wojciech Kocjan 2013-03-27 16:10:47 +01:00
parent 4cb4843323
commit c88c7538b6

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'),