Permalink
Browse files

Confirm page unload.

  • Loading branch information...
1 parent b32c5db commit 5b4ee6761cbe7287e057a1ab301438b1899b05ee @epeli committed Jul 20, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/web/clientscripts/main.coffee
@@ -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) ->

0 comments on commit 5b4ee67

Please sign in to comment.