XMPP invitation landing page, without javascript
Make the i18n stuff actually work
They were kinda crashing the webpage before...
Alex Jordan 2017-01-16
parent 96d89cb · commit aa3f32b
-rw-r--r--scripts/main.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/main.js b/scripts/main.js
index afcda7b..242cd54 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -82,14 +82,13 @@
// load i18n and perform translation
i18n = new I18nText({path: 'lang'});
- i18n.once(I18nText.EVT_LOCALE_CHANGE, function (data) {
- translate_ui();
+ i18n.once(I18nText.event.LOCALE_CHANGE, function (data) {
+ rehash();
});
i18n.setLocale('en');
// functionality
load_clients();
- rehash();
window.addEventListener("hashchange", rehash, false);
}