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