From a6497f7a5217970da525b3f8a9345c047936d230 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 17 Feb 2017 16:56:59 +0100 Subject: [PATCH] Add a way to show the drive tips again --- customize.dist/translations/messages.fr.js | 4 +++- customize.dist/translations/messages.js | 3 +++ www/settings/main.js | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index c6a301445..ef009add6 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -317,7 +317,9 @@ define(function () { "Êtes-vous sûr de vouloir continuer ?
" + "Tapez “I love CryptPad” pour confirmer."; out.settings_resetDone = "Votre drive est désormais vide!"; - + out.settings_resetTips = "Astuces et informations dans CryptDrive"; + out.settings_resetTipsButton = "Réinitialiser les astuces visibles dans CryptDrive"; + out.settings_resetTipsDone = "Toutes les astuces sont de nouveau visibles."; // index.html diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 0958ad301..2529124b5 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -318,6 +318,9 @@ define(function () { "Are you sure you want to continue?
" + "Type “I love CryptPad” to confirm."; out.settings_resetDone = "Your drive is now empty!"; + out.settings_resetTips = "Tips in CryptDrive"; + out.settings_resetTipsButton = "Reset the available tips in CryptDrive"; + out.settings_resetTipsDone = "All the tips are now visible again."; // index.html diff --git a/www/settings/main.js b/www/settings/main.js index 6587cb4f0..e8e145fb3 100644 --- a/www/settings/main.js +++ b/www/settings/main.js @@ -95,7 +95,24 @@ define([ return $div; }; + var createResetTips = function () { + var $div = $('
', {'class': 'resetTips'}); + var $label = $('