Index: trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | /* Configuration */ |
20 | 20 | |
21 | 21 | // Bump the version number every time you change any of the .css/.js files |
22 | | -$wgEditWarningStyleVersion = 1; |
| 22 | +$wgEditWarningStyleVersion = 2; |
23 | 23 | |
24 | 24 | /* Setup */ |
25 | 25 | |
Index: trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.js |
— | — | @@ -12,5 +12,7 @@ |
13 | 13 | } |
14 | 14 | } |
15 | 15 | ); |
16 | | - } |
17 | | -); |
\ No newline at end of file |
| 16 | + $( 'form' ).submit( function() { |
| 17 | + window.onbeforeunload = function () {}; |
| 18 | + }); |
| 19 | +}); |
\ No newline at end of file |