Remove the langauge selector from toolbar and add it in settings

This commit is contained in:
yflory
2017-03-15 17:14:49 +01:00
parent 13d7b3cadc
commit 15e9af77bb
12 changed files with 55 additions and 14 deletions

View File

@@ -1061,8 +1061,11 @@ define([
content: Messages.type[type]
});
});
var $plusIcon = $('<div>').append($('<span>', {'class': 'fa fa-plus'}));
var dropdownConfig = {
text: Messages.fm_newButton,
text: $plusIcon.html() + Messages.fm_newButton,
options: options
};
var $block = Cryptpad.createDropdown(dropdownConfig);
@@ -2122,7 +2125,7 @@ define([
var userList = APP.userList = info.userList;
var config = {
displayed: ['useradmin', 'language', 'spinner', 'lag', 'state'],
displayed: ['useradmin', 'spinner', 'lag', 'state'],
readOnly: readOnly,
ifrw: window,
common: Cryptpad,