Toolbar improvements

This commit is contained in:
yflory
2017-06-30 11:42:54 +02:00
parent 5a3e9c785c
commit b9320e6005
11 changed files with 125 additions and 98 deletions

View File

@@ -85,6 +85,10 @@ define([
var $drawer = Cryptpad.createButton('more', true).appendTo($rightside);
$drawer.click(function () {
$drawerContent.toggle();
$drawer.removeClass('active');
if ($drawerContent.is(':visible')) {
$drawer.addClass('active');
}
});
}
@@ -463,6 +467,10 @@ define([
'class': 'saveIcon',
'title': Messages.saveTitle
}).hide();
if (config.readOnly === 1) {
$titleContainer.append($('<span>', {'class': 'readOnly'})
.text('('+Messages.readonly+')'));
}
if (config.readOnly === 1 || typeof(Cryptpad) === "undefined") { return $titleContainer; }
var $input = $('<input>', {
type: 'text',