MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Replaced content with "$(document).ready(function(){ $(".nojslazy").hide(); $('img.lazy-img').each(function() { if (!$(this).parents(".mw-collapsible-content").length && $(this).attr('data-s...") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$(".nojslazy").hide(); | $(".nojslazy").hide(); | ||
$('img.lazy-img').each(function() { | $('img.lazy-img').each(function() { | ||
if (!$(this).parents(".mw-collapsible-content") && $(this).attr('data-src')!='') { | if (!$(this).parents(".mw-collapsible-content").length && $(this).attr('data-src')!='') { | ||
$(this).attr('src', $(this).attr('data-src')); | $(this).attr('src', $(this).attr('data-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', ''); } }); });