mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 12:32:39 -05:00
18 lines
422 B
JavaScript
18 lines
422 B
JavaScript
|
/**
|
||
|
Our data model for representing the current email settings
|
||
|
|
||
|
@class EmailSettings
|
||
|
@extends Discourse.Model
|
||
|
@namespace Discourse
|
||
|
@module Discourse
|
||
|
**/
|
||
|
Discourse.EmailSettings = Discourse.Model.extend({});
|
||
|
|
||
|
Discourse.EmailSettings.reopenClass({
|
||
|
find: function() {
|
||
|
return Discourse.ajax("/admin/email.json").then(function (settings) {
|
||
|
return Discourse.EmailSettings.create(settings);
|
||
|
});
|
||
|
}
|
||
|
});
|