Difference between revisions of "MediaWiki:Common.js"

From Marathon Documentation
Jump to: navigation, search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
   
function open_in_mmv(href) { var t = $('a.image[href="' + (href || this.href) + '"]'); return t && t.length ? t.click() && false : true; }
+
function open_in_mmv(href) { var t = $('a.image[href="' + (href || this.href) + '"]'); return t && t.length ? t[0].click() && false : true; }

Revision as of 11:40, 9 October 2014

/* Any JavaScript here will be loaded for all users on every page load. */

function open_in_mmv(href) { var t = $('a.image[href="' + (href || this.href) + '"]'); return t && t.length ? t[0].click() && false : true; }