Permalink
Browse files

make em 2nd-guess their quittertude

  • Loading branch information...
princesspretzel authored and leafo committed Mar 13, 2017
1 parent b066186 commit 436feffa13c1af6a74cfaca535700f991cba0e2e
Showing with 5 additions and 0 deletions.
  1. +5 −0 static/coffee/main/view_streak.coffee
@@ -12,6 +12,7 @@ class S.ViewStreak
@setup_countdown()
@setup_sticky()
@setup_leave()
@el.on "s:reshape", _.throttle =>
$(document.body).trigger "sticky_kit:recalc"
@@ -47,3 +48,7 @@ class S.ViewStreak
new S.Countdown countdown, countdown_time
setup_leave: ->
leave_form = @el.find ".leave_form"
leave_form.on "submit", =>
confirm('Are you sure you want to leave this streak?')

0 comments on commit 436feff

Please sign in to comment.