From a6c49cd65c053ae3931ced9dd7be0f7db146cc3b Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 May 2017 10:49:59 +0200 Subject: [PATCH 1/8] Fix undefined title in slides present mode --- www/slide/main.js | 4 ++-- www/slide/slide.js | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/www/slide/main.js b/www/slide/main.js index 3b01ae9fd..b3d1209fd 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -491,11 +491,11 @@ define([ Slide.onChange(function (o, n, l) { if (n !== null) { - document.title = APP.title + ' (' + (++n) + '/' + l + ')'; + document.title = Title.title + ' (' + (++n) + '/' + l + ')'; return; } console.log("Exiting presentation mode"); - document.title = APP.title; + document.title = Title.title; }); Cryptpad.removeLoadingScreen(); diff --git a/www/slide/slide.js b/www/slide/slide.js index c9e6f3dcd..912820390 100644 --- a/www/slide/slide.js +++ b/www/slide/slide.js @@ -211,7 +211,10 @@ define([ $(ifrw).focus(); change(null, Slide.index); if (!isPresentURL()) { - window.location.hash += '/present'; + if (window.location.href.slice(-1) !== '/') { + window.location.hash += '/'; + } + window.location.hash += 'present'; } $pad.contents().find('.cryptpad-present-button').hide(); $pad.contents().find('.cryptpad-source-button').show(); @@ -220,7 +223,7 @@ define([ $('.top-bar').hide(); return; } - window.location.hash = window.location.hash.replace(/\/present$/, ''); + window.location.hash = window.location.hash.replace(/\/present$/, '/'); change(Slide.index, null); $pad.contents().find('.cryptpad-present-button').show(); $pad.contents().find('.cryptpad-source-button').hide(); From 6a8153aca36918977f07bebc106ccf859326a754 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 May 2017 11:44:58 +0200 Subject: [PATCH 2/8] Fix selection issues in the drive with Chrome --- www/drive/file.css | 3 +++ www/drive/file.less | 4 ++++ www/drive/inner.html | 2 +- www/drive/main.js | 31 +++++++++++++++++++++++-------- 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/www/drive/file.css b/www/drive/file.css index 431cecd60..fed050db1 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -43,6 +43,9 @@ body { margin-top: 0.5em; } } +div:focus { + outline: none; +} .fa { /*min-width: 17px;*/ margin-right: 3px; diff --git a/www/drive/file.less b/www/drive/file.less index fc6985802..fe506ae35 100644 --- a/www/drive/file.less +++ b/www/drive/file.less @@ -70,6 +70,10 @@ body { } } +div:focus { + outline: none; +} + .fa { /*min-width: 17px;*/ margin-right: 3px; diff --git a/www/drive/inner.html b/www/drive/inner.html index 859ae3391..c7f63f860 100644 --- a/www/drive/inner.html +++ b/www/drive/inner.html @@ -14,7 +14,7 @@
-
+