MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions

Content deleted Content added
Use addButtons, and make addition of these buttons conditional
don't init if the page is readonly, because then the toolbar suddenly gets loaded. https://bugzilla.wikimedia.org/show_bug.cgi?id=39577
Line 142:
*/
function initializeRefTools() {
if ( window.refToolbarInstalled === undefined && $( '#wpTextbox1[readonly]' ).length === 0 ) {
importScript( 'MediaWiki:RefToolbarBase.js' );