From 8ccd8a7d27de05ffa6ebd7635b74bf26b81b4598 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 7 Aug 2017 17:56:36 -0700 Subject: [PATCH] settings: Wait for i18n setup before rendering settings nav. Much like the parent commit and 038a2c769, but this time for the "Settings"/"Organization" nav at the upper-left of the settings overlay. --- static/js/click_handlers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index ac0de7fbe9..0b40988ca3 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -721,7 +721,7 @@ $(function () { $(".settings-section" + sel + ", .settings-wrapper" + sel).addClass("show"); }); - (function () { + (i18n.ensure_i18n(function () { var settings_toggle = components.toggle({ name: "settings-toggle", values: [ @@ -747,7 +747,7 @@ $(function () { $("#settings_overlay_container .tab-container") .append(settings_toggle); - }()); + })); }); return exports;