From 568ce70afd35fcf4d71b28e2f1459ffb6d4f801e Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 30 Jun 2017 12:36:21 +0200 Subject: [PATCH] Add a spinner for the history and update history buttons --- customize.dist/src/less/toolbar.less | 14 +++++++++++++- www/common/common-history.js | 14 +++++++++----- www/common/cryptpad-common.js | 5 ++--- www/drive/main.js | 9 ++++----- 4 files changed, 28 insertions(+), 14 deletions(-) diff --git a/customize.dist/src/less/toolbar.less b/customize.dist/src/less/toolbar.less index 712d71598..e36872ad9 100644 --- a/customize.dist/src/less/toolbar.less +++ b/customize.dist/src/less/toolbar.less @@ -304,7 +304,6 @@ body { } // Bootstrap 4 colors (btn-secondary) border: 1px solid transparent; - border-radius: .25rem; color: inherit; font: @toolbar-button-font; * { @@ -918,9 +917,22 @@ body { .gotoInput { vertical-align: middle; } + button { + color: inherit; + background-color: rgba(0,0,0,0.2); + &:hover { + background-color: rgba(0,0,0,0.4); + } + } .closeHistory { background: white; color: black; + &:hover { + background-color: #e6e6e6; + } + } + .fa-spinner { + font-size: 66px; } } .cke_toolbox .cryptpad-toolbar-history { diff --git a/www/common/common-history.js b/www/common/common-history.js index b8c874847..e29e95753 100644 --- a/www/common/common-history.js +++ b/www/common/common-history.js @@ -132,6 +132,13 @@ define([ var $right = $toolbar.find('.cryptpad-toolbar-rightside'); var $cke = $toolbar.find('.cke_toolbox_main'); + $hist.html('').show(); + $left.hide(); + $right.hide(); + $cke.hide(); + + common.spinner($hist).get().show(); + var onUpdate; var update = function () { @@ -165,10 +172,7 @@ define([ // Create the history toolbar var display = function () { - $hist.html('').show(); - $left.hide(); - $right.hide(); - $cke.hide(); + $hist.html(''); var $prev =$('