« MediaWiki:Common-IntersectionCategorie.js » : différence entre les versions
Contenu supprimé Contenu ajouté
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 134 :
],
possible_intersection : [▼
"Intersection d’auteurs",▼
"Intersection d’articles",▼
], ▼
▲ get_cat : function () {
▲ var text = $("#dropdown option:selected").text();
},
Ligne 157 ⟶ 144 :
this.cat_from_string(location.search, cat, nocat);
if (cat.length)
this.set_selected(cat, this.
},
Ligne 246 ⟶ 233 :
this.cat_from_string(location.search, cat, nocat);
if (cat.length) {
for (var
var
for (var i = 0;
}▼
▲ }
▲ if (cat[0].replace("_", "") == this.possible_article_category[i])
}
}
Ligne 259 ⟶ 245 :
dropdown_change : function() {
$("#input_listbox").html(this.build_listbox(this.
},
add_dropdown_list : function () {
var html = "<select id='dropdown' onchange='intersection_categorie.dropdown_change()''>";
for (var
html += "\n<option value='" +
html += "\n</select><br />";
$("#input_cat").html(html);
Ligne 281 ⟶ 267 :
}
if (mw.config.get("wgPageName") == "Spécial:Intersection_de_catégorie") {
▲ "Intersection d’auteurs" : intersection_categorie.possible_author_category,
intersection_categorie.setup();
}
|