Fix clearing all messages

This commit is contained in:
Hubert Dabrowski 2013-04-08 22:20:30 +02:00
parent 1241446fa0
commit b6e0daf0ac
2 changed files with 2 additions and 2 deletions

View File

@ -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.'

View File

@ -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.');