Amire80 has uploaded a new change for review.

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

Change subject: Add hooks documentation
......................................................................

Add hooks documentation

Change-Id: Ief93b34001d327d0691698918e42322a83cc61dd
---
A hooks.md
1 file changed, 69 insertions(+), 0 deletions(-)


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

diff --git a/hooks.md b/hooks.md
new file mode 100644
index 0000000..da88503
--- /dev/null
+++ b/hooks.md
@@ -0,0 +1,69 @@
+Hooks defined in UniversalLanguageSelector
+==========================================
+
+The hook names are prefixed with mw.uls as a convention.
+
+# List of hooks
+
+## mw.uls.font.change
+
+Fired when the user changes a webfont.
+
+## mw.uls.ime.change
+
+Fired when the user changes the keyboard layout.
+
+## mw.uls.ime.disable
+
+Fired when the user disables keyboard layout support.
+
+## mw.uls.ime.enable
+
+Fired when the user enables keyboard layout support.
+
+## mw.uls.ime.morelanguages
+
+Fired when the user clicks the More languages button in
+the keyboard layout selector.
+
+## mw.uls.interface.language.change
+
+Fired when the user selects a language in the ULS panel.
+
+## mw.uls.interface.morelanguages
+
+Fired when the user clicks the More languages button in
+the Display settings.
+
+## mw.uls.language.revert
+
+Fired when the user reverts the selected language using
+the tooltip that appears after the interface language change.
+
+## mw.uls.login.click
+
+Fired when the user clicks the Log in link in Display settings.
+
+## mw.uls.settings.apply
+
+Fired when the user applies the changed settings.
+
+## mw.uls.settings.cancel
+
+Fired when the user cancels the changes.
+
+## mw.uls.settings.open
+
+Fired when the user opens one of the settings panels.
+
+## mw.uls.webfonts.disable
+
+Fired when the user disables webfonts support.
+
+## mw.uls.webfonts.enable
+
+Fired when the user enables webfonts support.
+
+## mw.uls.webfonts.tofudetected
+
+Fired when ULS detects "tofu".

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief93b34001d327d0691698918e42322a83cc61dd
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