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

View file

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