Calls to Discourse.ajax no longer need getURL -- will be done automatically.

This commit is contained in:
Robin Ward
2013-05-07 13:30:12 -04:00
parent 0b4fc5d81c
commit bd99d5a40c
54 changed files with 202 additions and 248 deletions
@@ -20,7 +20,7 @@ Discourse.StaticController = Discourse.Controller.extend({
text = text[1];
this.set('content', text);
} else {
return Discourse.ajax(Discourse.getURL(path + ".json")).then(function (result) {
return Discourse.ajax(path + ".json").then(function (result) {
staticController.set('content', result);
});
}