diff --git a/www/common/common-file.js b/www/common/common-file.js index 017516341..ad56bae49 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 55e2b1cc7..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 = $('