Followup to 2e089a4e5: rename watch to watchpage
authorCatrope <roan.kattouw@gmail.com>
Thu, 21 Jun 2012 17:45:15 +0000 (10:45 -0700)
committerCatrope <roan.kattouw@gmail.com>
Thu, 21 Jun 2012 17:45:15 +0000 (10:45 -0700)
There is a jQuery bug causing events named 'watch' to break in Firefox

Change-Id: Ie44066bcb6fd84ee77551efa1ca40f5543126d2c

resources/mediawiki.page/mediawiki.page.watch.ajax.js

index 114ea8c..d3f8433 100644 (file)
                accesskeyTip = $link.attr( 'title' ).match( mw.util.tooltipAccessKeyRegexp );
                $li = $link.closest( 'li' );
                /**
-                * Trigger a 'watch' event for this List item.
+                * Trigger a 'watchpage' event for this List item.
                 * Announce the otherAction value as the first param.
                 * Used to monitor the state of watch link.
                 * TODO: Revise when system wide hooks are implemented
                 */
                if( state === undefined ) {
-                       $li.trigger( 'watch.mw', otherAction );
+                       $li.trigger( 'watchpage.mw', otherAction );
                }
 
                $link