mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add upload button to quickreply
This commit is contained in:
@@ -108,10 +108,10 @@
|
||||
"nodebb-plugin-spam-be-gone": "2.3.1",
|
||||
"nodebb-plugin-web-push": "0.7.2",
|
||||
"nodebb-rewards-essentials": "1.0.1",
|
||||
"nodebb-theme-harmony": "2.0.25",
|
||||
"nodebb-theme-harmony": "2.0.26",
|
||||
"nodebb-theme-lavender": "7.1.17",
|
||||
"nodebb-theme-peace": "2.2.38",
|
||||
"nodebb-theme-persona": "14.0.14",
|
||||
"nodebb-theme-peace": "2.2.39",
|
||||
"nodebb-theme-persona": "14.0.15",
|
||||
"nodebb-widget-essentials": "7.0.32",
|
||||
"nodemailer": "6.9.16",
|
||||
"nprogress": "0.2.0",
|
||||
|
||||
@@ -38,6 +38,7 @@ define('quickreply', [
|
||||
});
|
||||
|
||||
uploadHelpers.init({
|
||||
uploadBtnEl: $('[component="topic/quickreply/upload/button"]'),
|
||||
dragDropAreaEl: $('[component="topic/quickreply/container"] .quickreply-message'),
|
||||
pasteEl: element,
|
||||
uploadFormEl: $('[component="topic/quickreply/upload"]'),
|
||||
|
||||
@@ -41,6 +41,7 @@ define('uploadHelpers', ['alerts'], function (alerts) {
|
||||
const fileInput = formEl.find('input[name="files[]"]');
|
||||
options.uploadBtnEl.on('click', function () {
|
||||
fileInput.trigger('click');
|
||||
return false;
|
||||
});
|
||||
fileInput.on('change', function (e) {
|
||||
const files = (e.target || {}).files ||
|
||||
|
||||
Reference in New Issue
Block a user