diff options
author | Caio Carrara <ccarrara@thoughtworks.com> | 2016-06-24 17:15:54 -0300 |
---|---|---|
committer | Caio Carrara <ccarrara@thoughtworks.com> | 2016-06-27 16:39:55 -0300 |
commit | 361796f0ff1eb0f450f768749d5c69f5c4f6b1e4 (patch) | |
tree | 01e1729ce21feccba9c08fd6e7d8452397d5521a /web-ui/app/js/page | |
parent | 6042a2b1b93d2f2a89c418971d7e12b5a79b3314 (diff) |
Updates the i18next to latest version
See: #727
Diffstat (limited to 'web-ui/app/js/page')
-rw-r--r-- | web-ui/app/js/page/default.js | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/web-ui/app/js/page/default.js b/web-ui/app/js/page/default.js index 965fb577..ecaedfd8 100644 --- a/web-ui/app/js/page/default.js +++ b/web-ui/app/js/page/default.js @@ -97,46 +97,48 @@ define( 'use strict'; function initialize(path) { viewI18n.init(path + '/assets/'); - paneContractExpand.attachTo(document); + viewI18n.loaded(function() { + paneContractExpand.attachTo(document); - userAlerts.attachTo('#user-alerts'); + userAlerts.attachTo('#user-alerts'); - mailList.attachTo('#mail-list'); - mailListActions.attachTo('#list-actions'); + mailList.attachTo('#mail-list'); + mailListActions.attachTo('#list-actions'); - searchTrigger.attachTo('#search-trigger'); - resultsHighlighter.attachTo(document); + searchTrigger.attachTo('#search-trigger'); + resultsHighlighter.attachTo(document); - mailSender.attachTo(document); + mailSender.attachTo(document); - mailService.attachTo(document); - deleteService.attachTo(document); - recoverService.attachTo(document); + mailService.attachTo(document); + deleteService.attachTo(document); + recoverService.attachTo(document); - tags.attachTo(document); - tagList.attachTo('#tag-list'); + tags.attachTo(document); + tagList.attachTo('#tag-list'); - router.attachTo(document); + router.attachTo(document); - rightPaneDispatcher.attachTo(document); - middlePaneDispatcher.attachTo(document); - leftPaneDispatcher.attachTo(document); + rightPaneDispatcher.attachTo(document); + middlePaneDispatcher.attachTo(document); + leftPaneDispatcher.attachTo(document); - offCanvas.attachTo(document); - userSettings.attachTo(document); - userSettingsIcon.attachTo('#user-settings-icon'); - logout.attachTo('#logout'); - logoutShortcut.attachTo('#logout-shortcut'); - version.attachTo('.version'); + offCanvas.attachTo(document); + userSettings.attachTo(document); + userSettingsIcon.attachTo('#user-settings-icon'); + logout.attachTo('#logout'); + logoutShortcut.attachTo('#logout-shortcut'); + version.attachTo('.version'); - feedback.attachTo('#feedback'); - feedbackSender.attachTo(document); + feedback.attachTo('#feedback'); + feedbackSender.attachTo(document); - unreadCountTitle.attachTo(document); + unreadCountTitle.attachTo(document); - pixLogo.attachTo(document); + pixLogo.attachTo(document); - $.ajaxSetup({headers: {'X-XSRF-TOKEN': browser.getCookie('XSRF-TOKEN')}}); + $.ajaxSetup({headers: {'X-XSRF-TOKEN': browser.getCookie('XSRF-TOKEN')}}); + }); } return initialize; |