2014-08-09 06:28:57 -04:00
|
|
|
/**
|
|
|
|
Data model for representing an export
|
|
|
|
|
|
|
|
@class ExportCsv
|
|
|
|
@extends Discourse.Model
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
|
|
|
Discourse.ExportCsv = Discourse.Model.extend({});
|
|
|
|
|
|
|
|
Discourse.ExportCsv.reopenClass({
|
|
|
|
/**
|
|
|
|
Exports user list
|
|
|
|
|
|
|
|
@method export_user_list
|
|
|
|
**/
|
|
|
|
exportUserList: function() {
|
2014-11-21 14:46:10 -05:00
|
|
|
return Discourse.ajax("/admin/export_csv/users.json");
|
2014-11-21 10:25:04 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
Exports screened IPs list
|
|
|
|
|
|
|
|
@method export_screened_ips_list
|
|
|
|
**/
|
|
|
|
exportScreenedIpsList: function() {
|
|
|
|
return Discourse.ajax("/admin/export_csv/screened_ips.json");
|
2014-08-09 06:28:57 -04:00
|
|
|
}
|
|
|
|
});
|