Fixes staticController bug with requiring an HTML response.

This commit is contained in:
Robin Ward 2013-05-10 18:52:10 -04:00
parent 2f3dc63dd3
commit 8900ba4779
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Discourse.StaticController = Discourse.Controller.extend({
text = text[1];
this.set('content', text);
} else {
return Discourse.ajax(path + ".json").then(function (result) {
return Discourse.ajax(path + ".json", {dataType: 'html'}).then(function (result) {
staticController.set('content', result);
});
}