Difference between revisions of "MediaWiki:Common.js"

From Marathon Documentation
Jump to: navigation, search
Line 2: Line 2:
   
 
function open_in_mmv(href) { var t = $('a.image[href="' + (href || this.href) + '"]'); return t && t.length ? (t[0].click() || false) && false : true; }
 
function open_in_mmv(href) { var t = $('a.image[href="' + (href || this.href) + '"]'); return t && t.length ? (t[0].click() || false) && false : true; }
  +
$('img.expand-image').click(function () { $(this).toggleClass('expanded-image'); });

Revision as of 11:11, 16 June 2015

/* 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) && false : true; }
$('img.expand-image').click(function () { $(this).toggleClass('expanded-image'); });