Skip to content

Commit 8a13569

Browse files
committed
UnblockReview: fix button styling on testwiki
also refactor to not use User:Enterprisey/*.css files. we can just use mw.loader.using() fixes #274
1 parent 88738df commit 8a13569

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnblockReview/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Many additional bugs fixed.
2424
'.unblock-review td { padding: 0 }' +
2525
'td.reason-container { padding-right: 1em; width: 30em }' +
2626
'.unblock-review-reason { height: 5em }' );
27-
importStylesheet( 'User:Enterprisey/mw-ui-button.css' );
28-
importStylesheet( 'User:Enterprisey/mw-ui-input.css' );
2927

3028
// look for user-block HTML class, which will correspond to {{Unblock}} requests
3129
const userBlockBoxes = document.querySelectorAll( 'div.user-block' );
@@ -134,6 +132,8 @@ Many additional bugs fixed.
134132
} );
135133
}
136134

137-
await execute();
135+
mw.loader.using( 'mediawiki.ui.button', 'mediawiki.ui.input' ).then( async () => {
136+
await execute();
137+
} );
138138
}() );
139139
// </nowiki>

0 commit comments

Comments
 (0)