From 17146d7af999e504049be0a402656ba8cfd27555 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 15 Jun 2017 15:34:13 +0200 Subject: [PATCH] send feedback for uploads --- www/common/common-file.js | 1 + www/common/cryptpad-common.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/www/common/common-file.js b/www/common/common-file.js index 43d7cff2a..0b56ac055 100644 --- a/www/common/common-file.js +++ b/www/common/common-file.js @@ -123,6 +123,7 @@ define([ if (err) { return void console.error(err); } // TODO console.log(title); common.log(Messages._getKey('upload_success', [title])); + common.prepareFeedback('upload')(); if (config.onUploaded) { var data = getData(file, href); diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index df2f17379..2063f3a48 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -914,7 +914,7 @@ define([ return '_' + parts[0].toUpperCase(); }; - var prepareFeedback = function (key) { + var prepareFeedback = common.prepareFeedback = function (key) { if (typeof(key) !== 'string') { return $.noop; } return function () { feedback(key.toUpperCase() + getAppSuffix()); @@ -929,8 +929,10 @@ define([ button = $('