From d843caeb9a20a16796aa04348f2a052fc56c4cf8 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 30 Dec 2016 15:33:28 +0100 Subject: [PATCH] remove bottom bar and move language selector to main html --- customize.dist/about.html | 2 ++ customize.dist/index.html | 2 ++ customize.dist/main.js | 17 +++++++++++++++-- customize.dist/privacy.html | 4 ++-- customize.dist/src/template.html | 2 ++ customize.dist/terms.html | 2 ++ 6 files changed, 25 insertions(+), 4 deletions(-) diff --git a/customize.dist/about.html b/customize.dist/about.html index 9b5fd5fca..626b6bb95 100644 --- a/customize.dist/about.html +++ b/customize.dist/about.html @@ -19,6 +19,8 @@ + +
diff --git a/customize.dist/index.html b/customize.dist/index.html index aa1d5d6ac..5a0b9ec9d 100644 --- a/customize.dist/index.html +++ b/customize.dist/index.html @@ -19,6 +19,8 @@ + +
diff --git a/customize.dist/main.js b/customize.dist/main.js index af0afa95b..227fa2df3 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -1,11 +1,12 @@ define([ '/customize/messages.js', - '/customize/DecorateToolbar.js', + //'/customize/DecorateToolbar.js', '/customize/application_config.js', '/common/cryptpad-common.js', '/bower_components/lil-uri/uri.min.js', + '/customize/languageSelector.js', '/bower_components/jquery/dist/jquery.min.js', -], function (Messages, DecorateToolbar, Config, Cryptpad, LilUri) { +], function (Messages, Config, Cryptpad, LilUri, LS) { var $ = window.$; var APP = window.APP = { @@ -34,6 +35,18 @@ define([ }); }; + var $sel = $('#language-selector'); + + Object.keys(Messages._languages).forEach(function (code) { + $sel.append($('