From 84f59ce4f373e1e956d8b8f6fe95ef7fec1652f8 Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Mon, 20 Apr 2015 09:52:44 +0200 Subject: [PATCH] transfer --- static/js/transfersDialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/transfersDialog.js b/static/js/transfersDialog.js index b204322..6eb4a31 100644 --- a/static/js/transfersDialog.js +++ b/static/js/transfersDialog.js @@ -6,7 +6,7 @@ oml.ui.transfersDialog = function() { $list = Ox.TableList({ columns: [ - 'title', 'extension', 'size', + 'id', 'title', 'extension', 'size', 'transferadded', 'transferprogress' ].map(function(id) { var key = Ox.getObjectById(oml.config.itemKeys, id); @@ -18,7 +18,7 @@ oml.ui.transfersDialog = function() { id: id, operator: oml.getSortOperator(id), title: Ox._(key.title), - visible: true, + visible: id != 'id', width: id == 'title' ? 240 : id == 'transferadded' ? 144 : id == 'transferprogress' ? 80 - Ox.UI.SCROLLBAR_SIZE @@ -123,8 +123,8 @@ oml.ui.transfersDialog = function() { oml.bindEvent({ transfer: Ox.throttle(function(data) { var current = $list.value(data.id); - if (!Ox.isEmpty(current) && current.progress != data.progress) { - $list.value(data.id, 'progress', data.progress); + if (!Ox.isEmpty(current) && current.transferprogress != data.progress) { + $list.value(data.id, 'transferprogress', data.progress); } }, 1000) });