Anonymous user
MediaWiki:Gadget-friendlywelcome.js: Difference between revisions
v2.0-717-gb28bc42: tag: Switch to scrollbox; add link to each template's documentation; morebits, welcome, shared: Overhaul scrollbox functionality; morebits: Remove padding: 0 from footer buttons; morebits: Add DocumentFragment and CSS class support
imported>Amalthea (v2.0-703-gfcc0f24: misc: Make slight lint fixes to deprod, general linting and code cleanup; welcome: Add Wikipedia Adventure invite) |
imported>Amalthea (v2.0-717-gb28bc42: tag: Switch to scrollbox; add link to each template's documentation; morebits, welcome, shared: Overhaul scrollbox functionality; morebits: Remove padding: 0 from footer buttons; morebits: Add DocumentFragment and CSS class support) |
||
Line 136:
});
form.append( {
form.append( {
Line 168 ⟶ 172:
Twinkle.welcome.populateWelcomeList = function(e) {
var type = e.target.value;
var $workarea = $(e.target.form).find("div#welcomeWorkArea");▼
var
▲ type: "div",
▲ id: "welcomeWorkArea"
▲ });
if ((type === "standard" || type === "anonymous") && Twinkle.getFriendlyPref("customWelcomeList").length) {
type: 'radio',
name: 'template',
Line 186:
var appendTemplates = function(list) {
type: 'radio',
name: 'template',
Line 207:
switch (type) {
case "standard":
appendTemplates([
"welcome",
Line 220:
"welcome non-latin"
]);
appendTemplates([
"welcomelaws",
Line 236:
break;
case "anonymous":
appendTemplates([
"welcome-anon",
Line 247:
break;
case "wikiProject":
appendTemplates([
"welcome-au",
Line 276:
break;
case "nonEnglish":
appendTemplates([
"welcomeen-sq",
Line 298:
break;
default:
break;
}
var rendered =
▲ rendered.className = "quickform-scrollbox";
var firstRadio = e.target.form.template[0];
|