Skip to content

Commit

Permalink
Confirm page unload.
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Jul 20, 2011
1 parent b32c5db commit 5b4ee67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/web/clientscripts/main.coffee
Expand Up @@ -171,7 +171,8 @@ now.init = (watchers, cb) ->
$(window).bind "hashchange", activateWatcherByHash
activateWatcherByHash()


$(window).bind "beforeunload", (e) ->
"You will stop getting notifications of errors if you close this window."

jQuery ($) ->
$("a").live "click", (e) ->
Expand Down

0 comments on commit 5b4ee67

Please sign in to comment.