Add hooks fired when finished processing compact language links
Bug: T145755 Change-Id: I921191c2cd32d55161b32bad2b2e0d98228cf230
This commit is contained in:
1 parent
475c8a87d7
commit
908161f0c1
2 files changed
+11
No files matched your search
@@ -75,6 +75,8 @@
|
||||
|
||||
if ( this.listSize <= max ) {
|
||||
// Not enough languages to compact the list
|
||||
mw.hook( 'mw.uls.compactlinks.initialized' ).fire( false );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -98,6 +100,8 @@
|
||||
}
|
||||
|
||||
this.addTrigger();
|
||||
|
||||
mw.hook( 'mw.uls.compactlinks.initialized' ).fire( true );
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user