remove bottom bar and move language selector to main html

This commit is contained in:
ansuz
2016-12-30 15:33:28 +01:00
parent c6499d6789
commit d843caeb9a
6 changed files with 25 additions and 4 deletions

View File

@@ -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($('<option>', {
value: code,
}).text(Messages._languages[code]));
});
LS.main();
Messages._applyTranslation();
$sel.show();
var makeRecentPadsTable = function (recentPads) {
if (!recentPads.length) { return; }