mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
feat: allow file uploads on mobile chat
closes https://github.com/NodeBB/NodeBB/issues/11217
This commit is contained in:
@@ -74,6 +74,7 @@ define('forum/chats', [
|
||||
dragDropAreaEl: $('.chats-full'),
|
||||
pasteEl: $('[component="chat/input"]'),
|
||||
uploadFormEl: $('[component="chat/upload"]'),
|
||||
uploadBtnEl: $('[component="chat/upload/button"]'),
|
||||
inputEl: $('[component="chat/input"]'),
|
||||
});
|
||||
|
||||
@@ -87,6 +88,7 @@ define('forum/chats', [
|
||||
dragDropAreaEl: options.dragDropAreaEl,
|
||||
pasteEl: options.pasteEl,
|
||||
uploadFormEl: options.uploadFormEl,
|
||||
uploadBtnEl: options.uploadBtnEl,
|
||||
route: '/api/post/upload', // using same route as post uploads
|
||||
callback: function (uploads) {
|
||||
const inputEl = options.inputEl;
|
||||
|
||||
Reference in New Issue
Block a user