|
|
@ -132,6 +132,13 @@ define([
|
|
|
|
var $right = $toolbar.find('.cryptpad-toolbar-rightside');
|
|
|
|
var $right = $toolbar.find('.cryptpad-toolbar-rightside');
|
|
|
|
var $cke = $toolbar.find('.cke_toolbox_main');
|
|
|
|
var $cke = $toolbar.find('.cke_toolbox_main');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$hist.html('').show();
|
|
|
|
|
|
|
|
$left.hide();
|
|
|
|
|
|
|
|
$right.hide();
|
|
|
|
|
|
|
|
$cke.hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
common.spinner($hist).get().show();
|
|
|
|
|
|
|
|
|
|
|
|
var onUpdate;
|
|
|
|
var onUpdate;
|
|
|
|
|
|
|
|
|
|
|
|
var update = function () {
|
|
|
|
var update = function () {
|
|
|
@ -165,10 +172,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
// Create the history toolbar
|
|
|
|
// Create the history toolbar
|
|
|
|
var display = function () {
|
|
|
|
var display = function () {
|
|
|
|
$hist.html('').show();
|
|
|
|
$hist.html('');
|
|
|
|
$left.hide();
|
|
|
|
|
|
|
|
$right.hide();
|
|
|
|
|
|
|
|
$cke.hide();
|
|
|
|
|
|
|
|
var $prev =$('<button>', {
|
|
|
|
var $prev =$('<button>', {
|
|
|
|
'class': 'previous fa fa-step-backward buttonPrimary',
|
|
|
|
'class': 'previous fa fa-step-backward buttonPrimary',
|
|
|
|
title: Messages.history_prev
|
|
|
|
title: Messages.history_prev
|
|
|
@ -194,7 +198,7 @@ define([
|
|
|
|
var $close = $('<button>', {
|
|
|
|
var $close = $('<button>', {
|
|
|
|
'class':'closeHistory',
|
|
|
|
'class':'closeHistory',
|
|
|
|
title: Messages.history_closeTitle
|
|
|
|
title: Messages.history_closeTitle
|
|
|
|
}).text(Messages.history_close).appendTo($nav);
|
|
|
|
}).text(Messages.history_closeTitle).appendTo($nav);
|
|
|
|
var $rev = $('<button>', {
|
|
|
|
var $rev = $('<button>', {
|
|
|
|
'class':'revertHistory buttonSuccess',
|
|
|
|
'class':'revertHistory buttonSuccess',
|
|
|
|
title: Messages.history_restoreTitle
|
|
|
|
title: Messages.history_restoreTitle
|
|
|
|