r51696 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51695‎ | r51696 | r51697 >
Date:16:34, 10 June 2009
Author:catrope
Status:deferred
Tags:
Comment:
EditWarning: Fix bug that caused clicking the Save (or Preview) button to display the warning dialog
Modified paths:
  • /trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.php
@@ -18,7 +18,7 @@
1919 /* Configuration */
2020
2121 // Bump the version number every time you change any of the .css/.js files
22 -$wgEditWarningStyleVersion = 1;
 22+$wgEditWarningStyleVersion = 2;
2323
2424 /* Setup */
2525
Index: trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.js
@@ -12,5 +12,7 @@
1313 }
1414 }
1515 );
16 - }
17 -);
\ No newline at end of file
 16+ $( 'form' ).submit( function() {
 17+ window.onbeforeunload = function () {};
 18+ });
 19+});
\ No newline at end of file

Status & tagging log