Support for running discourse with a prefix (i.e. as http://servername/discourse)

This commit is contained in:
Wojciech Kocjan
2013-03-14 13:01:52 +01:00
parent 19860bd2c5
commit e6ccc300dc
61 changed files with 231 additions and 163 deletions

View File

@ -3,7 +3,7 @@ Discourse.Report = Discourse.Model.extend({});
Discourse.Report.reopenClass({
find: function(type) {
var model = Discourse.Report.create({type: type});
$.ajax("/admin/reports/" + type, {
$.ajax(Discourse.getURL("/admin/reports/") + type, {
type: 'GET',
success: function(json) {
model.mergeAttributes(json.report);
@ -12,4 +12,4 @@ Discourse.Report.reopenClass({
});
return(model);
}
});
});