mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge pull request #1710 from benjaminbrent/master
Fix email_preview AJAX call to use Discourse.ajax
This commit is contained in:
commit
ea835b78dc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue