MediaWiki:MoveEdittools.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
mw.hook( 'wikipage.content' ).add( ( $content ) => { | mw.hook( 'wikipage.content' ).add( ( $content ) => { | ||
const $editForm = $content.find( '.editform' ); | const $editForm = $content.find( '.editform' ); | ||
if ( $editForm ) { | if ( $editForm.length ) { | ||
console.log("loading"); | console.log("loading"); | ||
const $editTools = $content.find( '.mw-editTools' ); // DIV | const $editTools = $content.find( '.mw-editTools' ); // DIV |