MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "/** * jQuery makeCollapsible * * This will enable collapsible-functionality on all passed elements. * Will prevent binding twice to the same element. * Initial state is expa...") |
(Replaced content with "$(document).ready(function(){ $(".nojslazy").hide(); $('img.lazy-img').each(function() { if (!$(this).parents(".mw-collapsible-content").length && $(this).attr('data-s...") |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
$(document).ready(function(){ | |||
$(".nojslazy").hide(); | |||
( | |||
$. | $('img.lazy-img').each(function() { | ||
if (!$(this).parents(".mw-collapsible-content").length && $(this).attr('data-src')!='') { | |||
$(this).attr('src', $(this).attr('data-src')); | |||
$(this).attr('data-src', ''); | |||
} | |||
}); | |||
}); | |||
Latest revision as of 12:45, 13 February 2014
$(document).ready(function(){ $(".nojslazy").hide(); $('img.lazy-img').each(function() { if (!$(this).parents(".mw-collapsible-content").length && $(this).attr('data-src')!='') { $(this).attr('src', $(this).attr('data-src')); $(this).attr('data-src', ''); } }); });