mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 07:18:53 -05:00
Fix clearing all messages
This commit is contained in:
parent
1241446fa0
commit
b6e0daf0ac
@ -41,7 +41,7 @@ class MailCatcher
|
||||
$.ajax
|
||||
url: '/messages'
|
||||
type: 'DELETE'
|
||||
success: ->
|
||||
success: =>
|
||||
@unselectMessage()
|
||||
error: ->
|
||||
alert 'Error while quitting.'
|
||||
|
@ -72,7 +72,7 @@
|
||||
url: '/messages',
|
||||
type: 'DELETE',
|
||||
success: function() {
|
||||
return this.unselectMessage();
|
||||
return _this.unselectMessage();
|
||||
},
|
||||
error: function() {
|
||||
return alert('Error while quitting.');
|
||||
|
Loading…
Reference in New Issue
Block a user