Абмеркаваньне MediaWiki:AddSectionButtons-vector.js

Апошні каментар: 17 лютага 2011, ад удзельніка Zedlik
var newSectionElementSpan = document.createElement('span');
var newSectionElementLink = document.createElement('a');
newSectionElementLink.href = wgArticlePath.replace("$1", wgPageName) + "?action=edit&section=new";

var accessKeyPrefix = "";
if (tooltipAccessKeyPrefix) {
    accessKeyPrefix = tooltipAccessKeyPrefix;
}
newSectionElementLink.title = "Пачаць новую сэкцыю [" + accessKeyPrefix + "+]";
newSectionElementLink.setAttribute("accesskey", "+");
newSectionElementLink.innerHTML = "Дадаць тэму";

newSectionElementSpan.appendChild(newSectionElementLink);
newSectionElement.appendChild(newSectionElementSpan);

Цяпер у табах ідзе <span><a /></span>, а не наадварот. Па ідэі, гэта мусіць працаваць.

Замяніць ад аб’яўленьня newSectionElementLink да newSectionElement.appendChild(newSectionElementLink); уключна. — Wizardist г 18:15, 16 лютага 2011 (EET)Адказаць

Дзякуй, абнавіў, працуе. —zedlik 00:23, 17 лютага 2011 (EET)Адказаць
Вярнуцца да старонкі «AddSectionButtons-vector.js».