r106356 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106355‎ | r106356 | r106357 >
Date:18:58, 15 December 2011
Author:aaron
Status:ok
Tags:
Comment:
(bug 33164) Use newer jQuery unload() function for unload handler to avoid strange Vector extension conflict.
Modified paths:
  • /trunk/extensions/FlaggedRevs/frontend/modules/ext.flaggedRevs.review.js (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/frontend/modules/ext.flaggedRevs.review.js
@@ -35,7 +35,7 @@
3636 // Display "advertise" notice
3737 fr.enableAjaxReviewActivity();
3838 // "De-advertise" user as "no longer reviewing" on navigate-away
39 - $( window ).bind( 'beforeunload', function( e ) {
 39+ $( window ).unload( function( e ) {
4040 if ( fr.isUserReviewing === 1 ) {
4141 fr.deadvertiseReviewing();
4242 }

Status & tagging log