Fixed bug where multiple post attachements by drag-and-drop were not being added to the post content.
This commit is contained in:
parent
b15a53b672
commit
8925e0c6c9
@ -511,10 +511,10 @@ function enableOnUser(){
|
|||||||
xhr.addEventListener('load', function (e) {
|
xhr.addEventListener('load', function (e) {
|
||||||
//console.log('xhr upload complete', e);
|
//console.log('xhr upload complete', e);
|
||||||
window.fileUploadsCompleted = window.fileUploadsCompleted + 1;
|
window.fileUploadsCompleted = window.fileUploadsCompleted + 1;
|
||||||
// When all the uploads have completed, refresh the page
|
|
||||||
if (window.filesToUpload > 0 && window.fileUploadsCompleted === window.filesToUpload) {
|
|
||||||
addeditortext(xhr.responseText);
|
addeditortext(xhr.responseText);
|
||||||
$('#jot-media').val($('#jot-media').val() + 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) {
|
||||||
$('#profile-rotator').spin(false);
|
$('#profile-rotator').spin(false);
|
||||||
window.fileUploadsCompleted = window.filesToUpload = 0;
|
window.fileUploadsCompleted = window.filesToUpload = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user