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
url: '/messages'
type: 'DELETE'
success: ->
success: =>
@unselectMessage()
error: ->
alert 'Error while quitting.'

View File

@ -72,7 +72,7 @@
url: '/messages',
type: 'DELETE',
success: function() {
return this.unselectMessage();
return _this.unselectMessage();
},
error: function() {
return alert('Error while quitting.');