From 846d1135b9d0cafe07b139291c929441e6731a7f Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 22 Jul 2016 14:16:07 +0200 Subject: [PATCH] set mode in the editor, not just the dropdown --- www/code/main.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/www/code/main.js b/www/code/main.js index d4decf89f..2647f01a2 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -332,17 +332,22 @@ define([ }).join('\n') + ''; + setMode(lastLanguage); + /* Remember the user's last choice of theme using localStorage */ var themeKey = 'CRYPTPAD_CODE_THEME'; var lastTheme = localStorage.getItem(themeKey) || 'default'; /* Let the user select different themes */ - var themeDropdown = ''; + var $themeDropdown = $('