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

Usunięta treść Dodana treść
test
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 = $( 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 = $( section ? section : toolbar ).find( "div.group-" + groupName );
if ( $groups.length ) {
? $( section ).find( 'div.group-' + groupName )
: $( toolbar ).find( 'div.group-' + groupName= )groups[0];
if ( $groups.length ) {
group = $groups[0];
}
}
Linia 88 ⟶ 86:
// If the section does not exist, place the button in main section
if ( !section ) {
var $sections = $( toolbar ).find( '"div.section-main'" );
if ( $sections.length ) {
section = $sections[0];
}
}