From: Łukasz Rekucki Date: Sun, 14 Mar 2010 21:08:11 +0000 (+0100) Subject: Warn before leaving page. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/cb50c78e7f77e5416fa405db18d142c96d16a543?ds=inline Warn before leaving page. --- diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 15099585..cdcc21a8 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -896,6 +896,9 @@ $(function() { } $(window).resize(); }); - + + $(window).bind('beforeunload', function(event) { + return "Na stronie mogą być niezapisane zmiany."; + }); });