File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ The hook names are prefixed with mw.uls as a convention.
5
5
6
6
# List of hooks
7
7
8
+ ## mw.uls.compactlinks.initialized
9
+
10
+ Fired when the rendering of compact language links and
11
+ the corresponding button is completed.
12
+ Sends a boolean true argument if the list was actually compacted
13
+ and the trigger was rendered, and false otherwise.
14
+
8
15
## mw.uls.font.change
9
16
10
17
Fired when the user changes a webfont.
Original file line number Diff line number Diff line change 75
75
76
76
if ( this . listSize <= max ) {
77
77
// Not enough languages to compact the list
78
+ mw . hook ( 'mw.uls.compactlinks.initialized' ) . fire ( false ) ;
79
+
78
80
return ;
79
81
}
80
82
98
100
}
99
101
100
102
this . addTrigger ( ) ;
103
+
104
+ mw . hook ( 'mw.uls.compactlinks.initialized' ) . fire ( true ) ;
101
105
} ;
102
106
103
107
/**
You can’t perform that action at this time.
0 commit comments