From 4941674cf740ec8b8feb64cbea414df41917d061 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 27 Feb 2017 14:31:00 +0100 Subject: [PATCH 1/2] initialize allowUserFeedback to true if it is not defined --- customize.dist/fsStore.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/customize.dist/fsStore.js b/customize.dist/fsStore.js index a80fa1b70..fbf7a5719 100644 --- a/customize.dist/fsStore.js +++ b/customize.dist/fsStore.js @@ -135,6 +135,11 @@ define([ if (typeof(f) === 'function') { f(void 0, store); } + + if (typeof(proxy.allowUserFeedback) !== 'boolean') { + proxy.allowUserFeedback = true; + } + proxy.on('change', [Cryptpad.displayNameKey], function (o, n, p) { if (typeof(n) !== "string") { return; } Cryptpad.changeDisplayName(n); From 06f0891d21061e71735fad80ead20b07aa993af0 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 27 Feb 2017 14:31:56 +0100 Subject: [PATCH 2/2] add allowUserFeedback toggle to settigs page --- customize.dist/translations/messages.js | 1 + www/settings/main.js | 29 +++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 1c1f1fb62..87852fac7 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -255,6 +255,7 @@ define(function () { 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."; + out.settings_userFeedback = "disable user feedback"; // index.html diff --git a/www/settings/main.js b/www/settings/main.js index ff66e09cb..b28485531 100644 --- a/www/settings/main.js +++ b/www/settings/main.js @@ -95,7 +95,7 @@ define([ return $div; }; - var createResetTips = function () { + var createResetTips = function () { var $div = $('
', {'class': 'resetTips'}); var $label = $('