mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 08:32:53 +01:00
possible fix for #1050
This commit is contained in:
@@ -537,8 +537,13 @@ define(['taskbar'], function(taskbar) {
|
||||
files = dt.files;
|
||||
|
||||
if(files.length) {
|
||||
var fd = new FormData();
|
||||
for (var i = 0, file; file = dt.files[i]; i++) {
|
||||
fd.append('files[]', file, file.name);
|
||||
}
|
||||
|
||||
fileForm[0].reset();
|
||||
fileForm.find('#files')[0].files = files;
|
||||
uploadSubmit(files, post_uuid, '/api/post/upload', fd);
|
||||
}
|
||||
|
||||
drop.hide();
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-sm btn-default follow" type="button" title="[[topic:notify_me]]"><i class="fa fa-eye"></i></button>
|
||||
<button class="btn btn-sm btn-default follow hide" type="button" title="[[topic:notify_me]]"><i class="fa fa-eye"></i></button>
|
||||
<button class="btn btn-sm btn-default flag" type="button" title="[[topic:flag_title]]"><i class="fa fa-flag-o"></i></button>
|
||||
<button data-favourited="{posts.favourited}" class="favourite favourite-tooltip btn btn-sm btn-default <!-- IF posts.favourited --> btn-warning <!-- ENDIF posts.favourited -->" type="button">
|
||||
<span class="favourite-text">[[topic:favourite]]</span>
|
||||
|
||||
Reference in New Issue
Block a user