MediaWiki:Common.js i Usuari:Arlolra/sandbox/MediaWiki:Common.js: Diferència entre les pàgines
(Diferència entre pàgines)
Contingut suprimit Contingut afegit
Update for T314318, per request (sysadmin action) |
Cap resum de modificació |
||
Línia 467: | Línia 467: | ||
} |
} |
||
} |
} |
||
var rightlink; |
|||
var commentText; |
var commentText; |
||
var wrap; |
|||
for (j = 0; j < units.length; j++) { |
for (j = 0; j < units.length; j++) { |
||
currentimage = units[j]; |
currentimage = units[j]; |
||
wrap = document.createElement('div'); |
|||
wrap.id = "ImageGroupsGr" + i + "Im" + j; |
|||
currentimage.parentNode.insertBefore(wrap, currentimage); |
|||
wrap.appendChild(currentimage); |
|||
var leftlink = document.createElement("a"); |
var leftlink = document.createElement("a"); |
||
if (commentText !== undefined) { |
if (commentText !== undefined) { |
||
Línia 508: | Línia 512: | ||
imghead.appendChild(rightlink); |
imghead.appendChild(rightlink); |
||
if (units.length > 1) { |
if (units.length > 1) { |
||
wrap.insertBefore(imghead, wrap.childNodes[0]); |
|||
} |
} |
||
if (j !== 0) { |
if (j !== 0) { |
||
wrap.style.display = "none"; |
|||
} |
} |
||
} |
} |