aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-28 19:21:33 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-28 19:21:33 -0400
commit8925e0c6c90e4c6cf75b346978d3f6d963b5c7d7 (patch)
tree179847120cd33a372b0b174dcf1f94c6a9fbc8c0 /view/tpl/jot-header.tpl
parentb15a53b672fa6b94181c9144e8a11a8b774fb7d5 (diff)
downloadvolse-hubzilla-8925e0c6c90e4c6cf75b346978d3f6d963b5c7d7.tar.gz
volse-hubzilla-8925e0c6c90e4c6cf75b346978d3f6d963b5c7d7.tar.bz2
volse-hubzilla-8925e0c6c90e4c6cf75b346978d3f6d963b5c7d7.zip
Fixed bug where multiple post attachements by drag-and-drop were not being added to the post content.
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index ee00e25e6..c0d524764 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -511,10 +511,10 @@ function enableOnUser(){
xhr.addEventListener('load', function (e) {
//console.log('xhr upload complete', e);
window.fileUploadsCompleted = window.fileUploadsCompleted + 1;
+ addeditortext(xhr.responseText);
+ $('#jot-media').val($('#jot-media').val() + xhr.responseText);
// When all the uploads have completed, refresh the page
- if (window.filesToUpload > 0 && window.fileUploadsCompleted === window.filesToUpload) {
- addeditortext(xhr.responseText);
- $('#jot-media').val($('#jot-media').val() + xhr.responseText);
+ if (window.filesToUpload > 0 && window.fileUploadsCompleted === window.filesToUpload) {
$('#profile-rotator').spin(false);
window.fileUploadsCompleted = window.filesToUpload = 0;
}