Difference between revisions of "MediaWiki:Perseids-toolbar.js"

From EAGLE MediaWiki
Jump to navigation Jump to search
(revert)
(disabilito temporaneamente per test in locale)
Line 1: Line 1:
$( '.wikibase-toolbareditgroup-innoneditmode .wikibase-toolbar .wikibase-toolbarbutton' )
 
.after(
 
$( '<a>' )
 
.attr( {
 
'class': 'wikibase-toolbarbutton',
 
'href': '#'
 
} )
 
.before( '|' )
 
.text( 'edit in Perseids' )
 
.click( function ( event ) {
 
/*event.preventDefault();*/
 
} )
 
);
 
 
$( '.wb-claim-section .wb-addtoolbar .wb-editsection a.wikibase-toolbarbutton')
 
.after(
 
$( '<a>' )
 
.attr( {
 
'class': 'wikibase-toolbarbutton',
 
'href': '#'
 
} )
 
.before( '|' )
 
.text( 'add via Perseids' )
 
.click( function ( event ) {
 
/*event.preventDefault();*/
 
} )
 
);
 
 
$( '.wikibase-toolbareditgroup .wikibase-toolbarbutton:not(.wikibase-toolbarbutton-disabled' ).click(function () {
 
$( '.wikibase-toolbareditgroup-ineditmode .wikibase-toolbar .wikibase-toolbarbutton')
 
.slice(-2,-1)
 
.after(
 
$( '<a>' )
 
.attr( {
 
'class': 'wikibase-toolbarbutton',
 
'href': '#'
 
} )
 
.before( '|' )
 
.text( 'save to Perseids' )
 
.click( function ( event ) {
 
/*event.preventDefault();*/
 
} )
 
);
 
});
 

Revision as of 17:14, 14 September 2014