aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-07-29 09:55:13 +1000
committerGitHub <noreply@github.com>2016-07-29 09:55:13 +1000
commit3a320462faedca9ec29a452e82d874fce0138136 (patch)
tree179847120cd33a372b0b174dcf1f94c6a9fbc8c0
parentb15a53b672fa6b94181c9144e8a11a8b774fb7d5 (diff)
parent8925e0c6c90e4c6cf75b346978d3f6d963b5c7d7 (diff)
downloadvolse-hubzilla-3a320462faedca9ec29a452e82d874fce0138136.tar.gz
volse-hubzilla-3a320462faedca9ec29a452e82d874fce0138136.tar.bz2
volse-hubzilla-3a320462faedca9ec29a452e82d874fce0138136.zip
Merge pull request #467 from anaqreon/multiple-attach
Fixed bug where multiple post attachements by drag-and-drop were not …
-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;
}