mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
17 lines
No EOL
435 B
CoffeeScript
17 lines
No EOL
435 B
CoffeeScript
window.Discourse.AdminEmailLogsController = Ember.ArrayController.extend Discourse.Presence,
|
|
|
|
sendTestEmailDisabled: (->
|
|
@blank('testEmailAddress')
|
|
).property('testEmailAddress')
|
|
|
|
sendTestEmail: ->
|
|
@set('sentTestEmail', false)
|
|
$.ajax
|
|
url: '/admin/email_logs/test',
|
|
type: 'POST'
|
|
data:
|
|
email_address: @get('testEmailAddress')
|
|
success: =>
|
|
@set('sentTestEmail', true)
|
|
false
|
|
|