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
|
$.ajax
|
||||||
url: '/messages'
|
url: '/messages'
|
||||||
type: 'DELETE'
|
type: 'DELETE'
|
||||||
success: ->
|
success: =>
|
||||||
@unselectMessage()
|
@unselectMessage()
|
||||||
error: ->
|
error: ->
|
||||||
alert 'Error while quitting.'
|
alert 'Error while quitting.'
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
url: '/messages',
|
url: '/messages',
|
||||||
type: 'DELETE',
|
type: 'DELETE',
|
||||||
success: function() {
|
success: function() {
|
||||||
return this.unselectMessage();
|
return _this.unselectMessage();
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
return alert('Error while quitting.');
|
return alert('Error while quitting.');
|
||||||
|
Loading…
Reference in New Issue
Block a user