diff options
Diffstat (limited to 'CheckUser/modules/ext.checkUser.investigate/init.js')
-rw-r--r-- | CheckUser/modules/ext.checkUser.investigate/init.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CheckUser/modules/ext.checkUser.investigate/init.js b/CheckUser/modules/ext.checkUser.investigate/init.js new file mode 100644 index 00000000..d92c3440 --- /dev/null +++ b/CheckUser/modules/ext.checkUser.investigate/init.js @@ -0,0 +1,20 @@ +( function () { + var addBlockForm = require( './blockform.js' ), + setupTables = require( './tables.js' ), + addCopyFeature = require( './copy.js' ); + + if ( $( '.ext-checkuser-investigate-subtitle-block-button' ).length > 0 ) { + addBlockForm(); + } + + setupTables(); + + if ( + $( '.ext-checkuser-investigate-table-compare' ).length > 0 && + mw.config.get( 'wgVisualEditorConfig' ) && + mw.config.get( 'wgVisualEditorConfig' ).fullRestbaseUrl + ) { + addCopyFeature(); + } + +}() ); |