Pending Downloads

- +
diff --git a/js/script.js b/js/script.js index a79475a..e42d925 100755 --- a/js/script.js +++ b/js/script.js @@ -14,6 +14,7 @@ $(function() { }, success: function(data) { log.append(JSON.stringify(data) + "
"); + updateDownloads(); }, error: function() { err_connect.modal('show'); @@ -30,9 +31,27 @@ function updateDownloads() { updateStopDownloads(); } -function updateDownloads() { +var d_files = []; +function d_fill() { + for(var i = 0; i < 10; i++) { + addDownload({ + gid: i, + status: "active", + totalLength: (i + 15) * 20, + completedLength: (i + 15) * 19; + downloadSpeed: 200 + i + }); + } +} +function addDownload(conf) { + d_files.push(conf); + var d_table = $("#d_table"); } +function updateDownloads() { + d_fill(); + var d_table = $("#d_table"); +} function updateWaiting() {
Name Progress