Merge branch 'staging' into hackathon-2021

pull/1/head
ansuz 3 years ago
commit 34aa959a10

@ -311,7 +311,7 @@ var httpServer = Env.httpServer = Http.createServer(app);
nThen(function (w) {
Fs.exists(__dirname + "/customize", w(function (e) {
if (e) { return; }
console.log("Cryptpad is customizable, see customize.dist/readme.md for details");
console.log("CryptPad is customizable, see customize.dist/readme.md for details");
}));
}).nThen(function (w) {
httpServer.listen(config.httpPort,config.httpAddress,function(){

@ -460,7 +460,11 @@ MessengerUI, Messages, Pages) {
Messages.ui_expand = "Expand"; // XXX
createCollapse = function (toolbar) {
var icon = h('i.fa.fa-caret-up');
var up = 'fa-chevron-up';
var down = 'fa-chevron-down';
var both = up + ' ' + down;
var icon = h('i.fa.' + up);
var $icon = $(icon);
var text = h('span', Messages.ui_collapse);
var $text = $(text);
@ -472,7 +476,7 @@ MessengerUI, Messages, Pages) {
$button.click(function () {
toolbar.$top.toggleClass('toolbar-hidden');
var hidden = toolbar.$top.hasClass('toolbar-hidden');
$icon.toggleClass('fa-caret-down fa-caret-up'); //.toggleClass('fa-caret-up');
$icon.toggleClass(both);
$button.toggleClass('cp-toolbar-button-active');
$text.text(Messages[(hidden ? 'ui_expand': 'ui_collapse')]);
});

Loading…
Cancel
Save