MediaWiki:Gadget-lib-toolbar.js: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Beau (dyskusja | edycje)
Nie podano opisu zmian
Beau (dyskusja | edycje)
Linia 6:
window.toolbarGadget = {
/** Version of the gadget */
version: 67,
/** A status of the gadget */
ready: false,
Linia 68:
var section;
if ( button.section ) {
var sections = getElementsByClassName$( toolbar, ).find( "div", ".section-" + button.section );
if ( sections.length ) {
section = sections[0];
Linia 78:
var groupName = button.group ? button.group : 'custom';
if ( !group ) {
var groups = getElementsByClassName$( section ? section : toolbar, ).find( "div", ".group-" + groupName );
if ( groups.length ) {
group = groups[0];
Linia 86:
// If the section does not exist, place the button in main section
if ( !section ) {
var sections = getElementsByClassName$( toolbar, ).find( "div", ".section-main" );
if ( sections.length ) {
section = sections[0];