Merge pull request #1710 from benjaminbrent/master

Fix email_preview AJAX call to use Discourse.ajax
This commit is contained in:
Sam 2013-12-01 23:51:09 -08:00
commit ea835b78dc

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);