Added prevent default to markAllSeen click.

This commit is contained in:
Martin Edenhofer 2015-01-12 09:13:24 +01:00
parent 02f5cf76df
commit 716e428f07

View file

@ -77,11 +77,15 @@ class App.OnlineNotificationWidget extends App.Controller
# insert data
$( App.view('widget/online_notification')(items: items))
).on('shown.bs.popover', =>
# show frontend times
$('#markAllAsSeen').bind('click', (e) =>
e.preventDefault()
@markAllAsSeen(items)
);
@frontendTimeUpdate()
).on('hide.bs.popover', =>
$('#markAllAsSeen').unbind('click')
)
fetch: =>