Add hooks fired when finished processing compact language links

Bug: T145755
Change-Id: I921191c2cd32d55161b32bad2b2e0d98228cf230
This commit is contained in:
Amire80
2016-09-15 12:07:12 +03:00
parent 475c8a87d7
commit 908161f0c1
2 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,13 @@ The hook names are prefixed with mw.uls as a convention.
# List of hooks
## mw.uls.compactlinks.initialized
Fired when the rendering of compact language links and
the corresponding button is completed.
Sends a boolean true argument if the list was actually compacted
and the trigger was rendered, and false otherwise.
## mw.uls.font.change
Fired when the user changes a webfont.