From 26edb77cf0a6270af3b5f070fe0be4be4b65e999 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 20 Mar 2017 15:20:42 +0100 Subject: [PATCH] Fix style and usability issues in slides --- customize.dist/translations/messages.fr.js | 3 ++- customize.dist/translations/messages.js | 3 ++- www/common/cryptpad-common.js | 4 ++-- www/slide/main.js | 23 ++++++++++++++-------- www/slide/slide.js | 2 +- 5 files changed, 22 insertions(+), 13 deletions(-) diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 4ad51bdf7..be20cdf65 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -77,7 +77,7 @@ define(function () { out.backgroundButtonTitle = 'Changer la couleur de fond de la présentation'; out.colorButtonTitle = 'Changer la couleur du texte en mode présentation'; - out.printButton = "Imprimer"; + out.printButton = "Imprimer (Entrée)"; out.printButtonTitle = "Imprimer votre présentation ou l'enregistrer au format PDF"; out.printOptions = "Options de mise en page"; out.printSlideNumber = "Afficher le numéro des slides"; @@ -86,6 +86,7 @@ define(function () { out.printCSS = "Personnaliser l'apparence (CSS):"; out.slideOptionsTitle = "Personnaliser la présentation"; + out.slideOptionsButton = "Enregistrer (Entrée)"; out.editShare = "Lien d'édition"; out.editShareTitle = "Copier le lien d'édition dans le presse-papiers"; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 15540fd1a..d1d4d573d 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -79,7 +79,7 @@ define(function () { out.backgroundButtonTitle = 'Change the background color in the presentation'; out.colorButtonTitle = 'Change the text color in presentation mode'; - out.printButton = "Print"; + out.printButton = "Print (enter)"; out.printButtonTitle = "Print your slides or export them as a PDF file"; out.printOptions = "Layout options"; out.printSlideNumber = "Display the slide number"; @@ -88,6 +88,7 @@ define(function () { out.printCSS = "Custom style rules (CSS):"; out.slideOptionsTitle = "Customize your slides"; + out.slideOptionsButton = "Save (enter)"; out.editShare = "Editing link"; out.editShareTitle = "Copy the editing link to clipboard"; diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index f6e51a35e..314d5357c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1493,7 +1493,7 @@ define([ return $('button.ok'); }; - var listenForKeys = function (yes, no) { + var listenForKeys = common.listenForKeys = function (yes, no) { var handler = function (e) { switch (e.which) { case 27: // cancel @@ -1510,7 +1510,7 @@ define([ return handler; }; - var stopListening = function (handler) { + var stopListening = common.stopListening = function (handler) { $(window).off('keyup', handler); }; diff --git a/www/slide/main.js b/www/slide/main.js index fdd409ce0..949260f72 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -434,9 +434,9 @@ define([ var createPrintDialog = function () { var slideOptionsTmp = { - title: true, - slide: true, - date: true, + title: false, + slide: false, + date: false, style: '' }; @@ -474,21 +474,28 @@ define([ $p.append($('
')); var $textarea = $('