diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-30 16:24:18 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-30 16:24:18 -0800 |
commit | cc0d53e6959f333d26003af64439b2fd8a8d665c (patch) | |
tree | 91f72a99b493bb71285660171d653cc81f9a7bf8 /view/js/mod_cloud.js | |
parent | cce2b08e6bcb16b1c9fde13b2597ce66fc0c45d6 (diff) | |
download | volse-hubzilla-cc0d53e6959f333d26003af64439b2fd8a8d665c.tar.gz volse-hubzilla-cc0d53e6959f333d26003af64439b2fd8a8d665c.tar.bz2 volse-hubzilla-cc0d53e6959f333d26003af64439b2fd8a8d665c.zip |
made it to prepareHtml
Diffstat (limited to 'view/js/mod_cloud.js')
-rw-r--r-- | view/js/mod_cloud.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index 2215a9df9..0756c34e3 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -16,7 +16,7 @@ function UploadInit() { var fileselect = $("#files-upload"); var filedrag = $("#cloud-drag-area"); var submit = $("#upload-submit"); - + var count = 1; $('#invisible-cloud-file-upload').fileupload({ url: 'file_upload', @@ -26,6 +26,7 @@ function UploadInit() { maxChunkSize: 100000, // 4 * 1024 * 1024, add: function(e,data) { + $(data.files).each( function() { this.count = ++ count; prepareHtml(this) }); data.submit(); }, @@ -117,8 +118,9 @@ function UploadFileSelectHandler(e) { } } -function prepareHtml(f, i) { - var num = i - 1; +function prepareHtml(f) { + var num = f.count - 1; + var i = f.count; $('#cloud-index #new-upload-progress-bar-' + num.toString()).after( '<tr id="new-upload-' + i + '" class="new-upload">' + '<td><i class="fa ' + getIconFromType(f.type) + '" title="' + f.type + '"></i></td>' + |