display_settings: Fix real-time sync of default language.

We apparently weren't sending to the frontend the data needed to
update the display of the current language.
This commit is contained in:
Tim Abbott
2018-03-04 18:46:07 -08:00
parent c9724fe284
commit 9acf30b3d3
5 changed files with 22 additions and 5 deletions

View File

@@ -149,10 +149,7 @@ exports.report_emojiset_change = function () {
function _update_page() {
$("#twenty_four_hour_time").prop('checked', page_params.twenty_four_hour_time);
$("#left_side_userlist").prop('checked', page_params.left_side_userlist);
// TODO: We destroy the pencil when doing this, and also there's a
// problematic mismatch in field name between the event and the
// page_params default structure; page_params.default_language
// vs. page_params.default_language_name.
// TODO: We destroy the pencil when doing this
$("#default_language_name").text(page_params.default_language_name);
$("#translate_emoticons").prop('checked', page_params.translate_emoticons);
$("#night_mode").prop('checked', page_params.night_mode);