Warn before leaving page.
[redakcja.git] / 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.";                                                             
+       });                
 
 });
 
 });