New toolbar

This commit is contained in:
yflory
2017-06-21 18:04:35 +02:00
parent 503e9de07c
commit 8d956c3de6
11 changed files with 1180 additions and 387 deletions

View File

@@ -472,6 +472,7 @@ define([
Title.setToolbar(toolbar);
var $rightside = toolbar.$rightside;
var $drawer = toolbar.$drawer;
var editHash;
@@ -513,7 +514,7 @@ define([
$toolbar: $bar
};
var $hist = Cryptpad.createButton('history', true, {histConfig: histConfig});
$rightside.append($hist);
$drawer.append($hist);
/* save as template */
if (!Cryptpad.isTemplate(window.location.href)) {
@@ -528,12 +529,12 @@ define([
/* add an export button */
var $export = Cryptpad.createButton('export', true, {}, exportFile);
$rightside.append($export);
$drawer.append($export);
if (!readOnly) {
/* add an import button */
var $import = Cryptpad.createButton('import', true, {}, importFile);
$rightside.append($import);
$drawer.append($import);
}
/* add a forget button */