Fix close button on flash messages

This commit is contained in:
Piotr Sarnacki 2015-01-14 12:47:16 +01:00
parent df74b618ce
commit 2b86e93d13

View File

@ -30,7 +30,6 @@ Travis.FlashController = Ember.ArrayController.extend
@get('flashes').unshiftObject(msg)
Ember.run.later(this, (-> @get('flashes.content').removeObject(msg)), 15000)
actions:
close: (msg) ->
if msg instanceof Travis.Broadcast
msg.setSeen()
@ -38,3 +37,6 @@ Travis.FlashController = Ember.ArrayController.extend
else
@get('flashes').removeObject(msg)
actions:
close: (msg) ->
@close(msg)