Fix email_preview AJAX call to use Discourse.ajax

This commit is contained in:
Benjamin Brent 2013-12-01 13:30:41 +11:00
parent f5d905c215
commit 761da7d380
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Discourse.EmailPreview = Discourse.Model.extend({});
Discourse.EmailPreview.reopenClass({
findDigest: function(last_seen_at) {
return $.ajax("/admin/email/preview-digest.json", {
return Discourse.ajax("/admin/email/preview-digest.json", {
data: {last_seen_at: last_seen_at}
}).then(function (result) {
return Discourse.EmailPreview.create(result);