r114177 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114176‎ | r114177 | r114178 >
Date:20:19, 19 March 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/references.js
@@ -49,7 +49,7 @@
5050 $( '.mw-cite-backlink a' ).click( close );
5151
5252 var data, html, href, references = collect();
53 - $( 'sup a' ).click( function(ev) {
 53+ $( 'sup a' ).unbind('click').click( function(ev) {
5454 var top, oh;
5555 href = $(this).attr( 'href' );
5656 data = href && href.charAt(0) === '#' ?

Follow-up revisions

RevisionCommit summaryAuthorDate
r114207MFT r114177, r114184, r114190, r114191, r114193awjrichards22:28, 19 March 2012

Status & tagging log