diff --git a/index.html b/index.html
index 7032881..b8b8ade 100755
--- a/index.html
+++ b/index.html
@@ -28,7 +28,7 @@
Pending Downloads
-
+
Name |
Progress |
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() {