User:Kllhwang/duplicate-item.js: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
No edit summary |
||
Line 1: | Line 1: | ||
mw.loader.using( 'mediawiki.util', function () { | |||
// Wait for the page to be parsed | |||
$( document ).ready( function () { | |||
// See the "Portlets (menus and tabs)" subsection below | |||
var link = mw.util.addPortletLink( 'p-tb', '#', 'Duplicate this item','t-wd_duplicate_item'); | |||
$( link ).click( function ( event ) { | |||
event.preventDefault(); | |||
doQwikify(); | |||
} ); | |||
} ); | |||
} ); | |||
} ) ; |
Revision as of 22:00, 14 November 2024
mw.loader.using( 'mediawiki.util', function () {
// Wait for the page to be parsed
$( document ).ready( function () {
// See the "Portlets (menus and tabs)" subsection below
var link = mw.util.addPortletLink( 'p-tb', '#', 'Duplicate this item','t-wd_duplicate_item');
$( link ).click( function ( event ) {
event.preventDefault();
doQwikify();
} );
} );
} );