Warn before leaving page.
authorŁukasz Rekucki <lrekucki@gmail.com>
Sun, 14 Mar 2010 21:08:11 +0000 (22:08 +0100)
committerŁukasz Rekucki <lrekucki@gmail.com>
Sun, 14 Mar 2010 21:08:11 +0000 (22:08 +0100)
platforma/static/js/main.js

index 1509958..cdcc21a 100644 (file)
@@ -896,6 +896,9 @@ $(function() {
         }
         $(window).resize();
     });
         }
         $(window).resize();
     });
-                
+       
+       $(window).bind('beforeunload', function(event) {
+               return "Na stronie mogą być niezapisane zmiany.";                                                             
+       });                
 
 });
 
 });