mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fixes staticController bug with requiring an HTML response.
This commit is contained in:
parent
2f3dc63dd3
commit
8900ba4779
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue