Fixes staticController bug with requiring an HTML response.
This commit is contained in:
parent
2f3dc63dd3
commit
8900ba4779
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue