From 66b076111e040c3f4b4765ff519fb1e684b2b22e Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 15 Jun 2017 12:32:44 +0200 Subject: [PATCH] Add an upload button to the slide's file picker --- customize.dist/translations/messages.fr.js | 3 ++- customize.dist/translations/messages.js | 3 ++- www/common/cryptpad-common.js | 19 ++++++++++++++++ www/drive/main.js | 25 +++++----------------- www/slide/main.js | 24 ++++++++------------- 5 files changed, 37 insertions(+), 37 deletions(-) diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index e4e6befbd..2887e3748 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -134,8 +134,9 @@ define(function () { out.filePickerButton = "Intégrer un fichier"; out.filePicker_close = "Fermer"; - out.filePicker_description = "Choisissez un fichier de votre CryptDrive pour l'intégrer"; + out.filePicker_description = "Choisissez un fichier de votre CryptDrive pour l'intégrer ou uploadez-en un nouveau"; out.filePicker_filter = "Filtrez les fichiers par leur nom"; + out.or = 'ou'; out.slideOptionsTitle = "Personnaliser la présentation"; out.slideOptionsButton = "Enregistrer (Entrée)"; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 16bc6aff4..cad60ee63 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -136,8 +136,9 @@ define(function () { out.filePickerButton = "Embed a file"; out.filePicker_close = "Close"; - out.filePicker_description = "Choose a file from your CryptDrive to embed it"; + out.filePicker_description = "Choose a file from your CryptDrive to embed it or upload a new one"; out.filePicker_filter = "Filter files by name"; + out.or = 'or'; out.slideOptionsTitle = "Customize your slides"; out.slideOptionsButton = "Save (enter)"; diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index eec76cc6c..df2f17379 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -945,6 +945,25 @@ define([ })); } break; + case 'upload': + button = $('