MediaWiki:Common.js: различия между версиями
Kerisar (обсуждение | вклад) мНет описания правки |
Kerisar (обсуждение | вклад) мНет описания правки |
||
| Строка 218: | Строка 218: | ||
Array.prototype.forEach.call(element.attributes, function(attr) { | Array.prototype.forEach.call(element.attributes, function(attr) { | ||
if (!attr.name.startsWith('data-')) { | if (!attr.name.startsWith('data-')) { | ||
console.log(attr.name, attr.value); | |||
iframe.setAttribute(attr.name, attr.value); | iframe.setAttribute(attr.name, attr.value); | ||
} | } | ||
| Строка 236: | Строка 237: | ||
Array.prototype.forEach.call(element.attributes, function(attr) { | Array.prototype.forEach.call(element.attributes, function(attr) { | ||
if (!attr.name.startsWith('data-')) { | if (!attr.name.startsWith('data-')) { | ||
console.log(attr.name, attr.value); | |||
iframe.setAttribute(attr.name, attr.value); | iframe.setAttribute(attr.name, attr.value); | ||
} | } | ||