nodebb-plugin-composer-default 10.2.29 → 10.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js
CHANGED
|
@@ -236,7 +236,7 @@ function generateDiscardRoute(req, topicData) {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
async function generateBody(req, postData) {
|
|
239
|
-
let body = ''
|
|
239
|
+
let body = '';
|
|
240
240
|
// Quoted reply
|
|
241
241
|
if (req.query.toPid && parseInt(req.query.quoted, 10) === 1 && postData) {
|
|
242
242
|
const username = await user.getUserField(postData.uid, 'username');
|
package/package.json
CHANGED
|
@@ -8,12 +8,16 @@ define('composer/formatting', [
|
|
|
8
8
|
var formattingDispatchTable = {
|
|
9
9
|
picture: function () {
|
|
10
10
|
var postContainer = this;
|
|
11
|
-
postContainer.find('#files')
|
|
11
|
+
postContainer.find('#files')
|
|
12
|
+
.attr('accept', 'image/*')
|
|
13
|
+
.click();
|
|
12
14
|
},
|
|
13
15
|
|
|
14
16
|
upload: function () {
|
|
15
17
|
var postContainer = this;
|
|
16
|
-
postContainer.find('#files')
|
|
18
|
+
postContainer.find('#files')
|
|
19
|
+
.attr('accept', '')
|
|
20
|
+
.click();
|
|
17
21
|
},
|
|
18
22
|
|
|
19
23
|
thumbs: function () {
|
|
@@ -229,7 +229,8 @@ define('composer/uploads', [
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
preview.render(postContainer);
|
|
232
|
-
textarea.
|
|
232
|
+
textarea.prop('selectionEnd', cursorPosition + textarea.val().length - textLen);
|
|
233
|
+
textarea.focus();
|
|
233
234
|
postContainer.find('[data-action="post"]').prop('disabled', false);
|
|
234
235
|
$(window).trigger('action:composer.upload', {
|
|
235
236
|
post_uuid: post_uuid,
|