mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
More Javascript Tests + Fixtures. Also a rake task to crawl them.
This commit is contained in:
@@ -20,7 +20,7 @@ Discourse.StaticController = Discourse.Controller.extend({
|
||||
text = text[1];
|
||||
this.set('content', text);
|
||||
} else {
|
||||
return Discourse.ajax(path + ".json", {dataType: 'html'}).then(function (result) {
|
||||
return Discourse.ajax(path).then(function (result) {
|
||||
staticController.set('content', result);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ Discourse.UserStream = Discourse.Model.extend({
|
||||
}.observes('filter'),
|
||||
|
||||
findItems: function() {
|
||||
var url = Discourse.getURL("/user_actions?offset=") + this.get('itemsLoaded') + "&username=" + (this.get('user.username_lower'));
|
||||
var url = Discourse.getURL("/user_actions.json?offset=") + this.get('itemsLoaded') + "&username=" + (this.get('user.username_lower'));
|
||||
if (this.get('filter')) {
|
||||
url += "&filter=" + (this.get('filter'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user