Munurin millum rættingarnar hjá "MediaWiki:Common.js"

Content deleted Content added
Krinkle (kjak | íkøst)
Maintenance: mw:RL/MGU / mw:RL/JD - mw.config.values is deprecated
Krinkle (kjak | íkøst)
Maintenance: mw:RL/MGU / mw:RL/JD - mw.config.values is deprecated
 
Linja 288:
// if the namespace prefix is there, remove it on our verification copy. If it isn't there, add it to the original realValue copy.
if (mw.config.get('wgNamespaceNumber') != 0) {
if (mw.config.values.get('wgCanonicalNamespace') == verifyTitle.substr(0, mw.config.values.get('wgCanonicalNamespace').length).replace(/ /g, "_") && verifyTitle.charAt(mw.config.values.get('wgCanonicalNamespace').length) == ":") {
verifyTitle = verifyTitle.substr(mw.config.values.get('wgCanonicalNamespace').length + 1);
} else {
realTitleText = mw.config.values.get('wgCanonicalNamespace').replace(/_/g, " ") + ":" + realTitleText;
realTitleHTML = mw.config.values.get('wgCanonicalNamespace').replace(/_/g, " ") + ":" + realTitleHTML;
}
}
Linja 300:
verifyTitle = verifyTitle.replace(/_/g, " "); // underscores to spaces
verifyTitle = verifyTitle[0].toUpperCase() + verifyTitle.substring(1, verifyTitle.length); // uppercase first character
isPasteable = (verifyTitle == mw.config.values.get('wgTitle'));
 
var h1 = document.getElementsByTagName("h1")[0];