Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/310761

Change subject: Add a hook when finished rendering compact language links
......................................................................

Add a hook when finished rendering compact language links

Bug: T145755
Change-Id: I921191c2cd32d55161b32bad2b2e0d98228cf230
---
M hooks.md
M resources/js/ext.uls.compactlinks.js
2 files changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/61/310761/1

diff --git a/hooks.md b/hooks.md
index da88503..798c2f1 100644
--- a/hooks.md
+++ b/hooks.md
@@ -5,6 +5,11 @@
 
 # List of hooks
 
+## mw.uls.compactlinks.rendered
+
+Fired when the rendering of compact language links and
+the corresponding button is completed.
+
 ## mw.uls.font.change
 
 Fired when the user changes a webfont.
diff --git a/resources/js/ext.uls.compactlinks.js 
b/resources/js/ext.uls.compactlinks.js
index 3174cbe..e53e043 100644
--- a/resources/js/ext.uls.compactlinks.js
+++ b/resources/js/ext.uls.compactlinks.js
@@ -98,6 +98,8 @@
                }
 
                this.addTrigger();
+
+               mw.hook( 'mw.uls.compactlinks.rendered' ).fire();
        };
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/310761
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I921191c2cd32d55161b32bad2b2e0d98228cf230
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to