Fire hook when compact language links are opened
Following on from Icc64044d, we fire the mw.uls.compact_language_links.open hook whenever that treatment is opened (and not only the first time that the triggering element is clicked). Bug: T281928 Change-Id: I6fa966c22c738ca12bcbeb0225c03f3f8394ecee
This commit is contained in:
@@ -473,8 +473,6 @@
|
|||||||
!standalone
|
!standalone
|
||||||
);
|
);
|
||||||
|
|
||||||
mw.hook( 'mw.uls.compact_language_links.open' ).fire();
|
|
||||||
|
|
||||||
// Trigger the click handler to open ULS once ready
|
// Trigger the click handler to open ULS once ready
|
||||||
if ( standalone ) {
|
if ( standalone ) {
|
||||||
// Provide access to display and input settings if this entry point is the single point
|
// Provide access to display and input settings if this entry point is the single point
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ function launchULS( $trigger, languagesObject, forCLS ) {
|
|||||||
},
|
},
|
||||||
onVisible: function () {
|
onVisible: function () {
|
||||||
$trigger.addClass( 'selector-open' );
|
$trigger.addClass( 'selector-open' );
|
||||||
|
|
||||||
|
mw.hook( 'mw.uls.compact_language_links.open' ).fire();
|
||||||
},
|
},
|
||||||
languageDecorator: function ( $languageLink, language ) {
|
languageDecorator: function ( $languageLink, language ) {
|
||||||
var element = languagesObject[ language ];
|
var element = languagesObject[ language ];
|
||||||
|
|||||||
Reference in New Issue
Block a user