https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114177
Revision: 114177 Author: jdlrobson Date: 2012-03-19 20:19:01 +0000 (Mon, 19 Mar 2012) Log Message: ----------- unbind any existing click events on a references link this prevents things like toggle.js interfering with the behaviour Modified Paths: -------------- trunk/extensions/MobileFrontend/javascripts/references.js Modified: trunk/extensions/MobileFrontend/javascripts/references.js =================================================================== --- trunk/extensions/MobileFrontend/javascripts/references.js 2012-03-19 20:06:17 UTC (rev 114176) +++ trunk/extensions/MobileFrontend/javascripts/references.js 2012-03-19 20:19:01 UTC (rev 114177) @@ -49,7 +49,7 @@ $( '.mw-cite-backlink a' ).click( close ); var data, html, href, references = collect(); - $( 'sup a' ).click( function(ev) { + $( 'sup a' ).unbind('click').click( function(ev) { var top, oh; href = $(this).attr( 'href' ); data = href && href.charAt(0) === '#' ? _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs