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.
This commit is contained in:
Greg Price
2017-08-07 17:56:36 -07:00
committed by Tim Abbott
parent ee3ead2744
commit 8ccd8a7d27

View File

@@ -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;