mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:27:58 +08:00
Support for running discourse with a prefix (i.e. as http://servername/discourse)
This commit is contained in:
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user