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

Usunięta treść Dodana treść
Beau (dyskusja | edycje)
nowa wersja
Beau (dyskusja | edycje)
Nie podano opisu zmian
Linia 6:
window.toolbarGadget = {
/** Version of the gadget */
version: 56,
/** A status of the gadget */
ready: false,
Linia 26:
* section - a name of a section to which the button should be added
* group - a name of a group to which the button should be added (it will be created if not exists)
* oncreate - a callback invoked after the button has been created
*/
addButton: function( button ) {
Linia 97 ⟶ 98:
}
group.appendChild( link );
 
if ( button.oncreate ) {
button.oncreate( image );
}
return;
}
Linia 128 ⟶ 133:
} else {
toolbar.appendChild( image );
}
if ( button.oncreate ) {
button.oncreate( image );
}
return;