From 1179992a90a98a1e4a6fd8df43ce3344e7caae1b Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Jun 2017 14:48:33 +0200 Subject: [PATCH 1/4] update feedback key name --- www/common/toolbar2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index 5c531c38f..bd5440128 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -346,7 +346,7 @@ define([ var dropdownConfigShare = { text: $('
').append($shareIcon).html(), options: options, - feedback: 'SHARE', + feedback: 'SHARE_MENU', }; var $shareBlock = Cryptpad.createDropdown(dropdownConfigShare); //$shareBlock.find('button').attr('id', 'shareButton'); From 1763cf72d11899f76b73868f61d54e3d22abce85 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Jun 2017 16:24:12 +0200 Subject: [PATCH 2/4] tell anonymous users they can't upload --- www/common/common-file.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/common-file.js b/www/common/common-file.js index 92456a4a1..a698f5b49 100644 --- a/www/common/common-file.js +++ b/www/common/common-file.js @@ -242,6 +242,10 @@ define([ }; var onFileDrop = File.onFileDrop = function (file, e) { + if (!common.isLoggedIn()) { + return common.alert(common.Messages.upload_mustLogin); + } + Array.prototype.slice.call(file).forEach(function (d) { handleFile(d, e); }); @@ -273,6 +277,7 @@ define([ }) .on('drop', function (e) { e.stopPropagation(); + var dropped = e.originalEvent.dataTransfer.files; counter = 0; $hoverArea.removeClass('hovering'); From 0b9d7d6c0b578078f4ae17d69fcd950e8cb685b9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Jun 2017 16:51:44 +0200 Subject: [PATCH 3/4] fix color of links in poll and whiteboard --- customize.dist/src/less/toolbar.less | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/customize.dist/src/less/toolbar.less b/customize.dist/src/less/toolbar.less index fca423e9a..f980e6181 100644 --- a/customize.dist/src/less/toolbar.less +++ b/customize.dist/src/less/toolbar.less @@ -147,6 +147,9 @@ body { background: darken(@bgcolor, 10%); color: @color; } + .dropdown-bar-content.left a { + color: black; + } /*.dropdown-bar-content { background: darken(@bgcolor, 5%); border: 1px solid @color; @@ -673,6 +676,9 @@ body { display: inline-block; color: white; + a { + color: white; + } transition: all 0.15s; } .cryptpad-new { @@ -729,7 +735,9 @@ body { height: auto; padding: 0px 5px; text-decoration: none; - color: inherit; + + // hack because of whiteboard and poll + color: white !important; } } .cryptpad-user { From b037cfbfdba7c7fe79fe93a0c5724af48999759a Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Jun 2017 17:25:06 +0200 Subject: [PATCH 4/4] set usage tips relative to bottom of screen, not top --- www/common/common-interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 755e75a8e..e6927c70d 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -203,7 +203,7 @@ define([ var $loadingTip = $('
', {'id': 'loadingTip'}); $('', {'class': 'tips'}).text(getRandomTip()).appendTo($loadingTip); $loadingTip.css({ - 'top': $('body').height()/2 + $container.height()/2 + 20 + 'px' + 'bottom': $('body').height()/2 - $container.height()/2 + 20 + 'px' }); $('body').append($loadingTip); }