diff --git a/oml/nodes.py b/oml/nodes.py index 8782951..9391675 100644 --- a/oml/nodes.py +++ b/oml/nodes.py @@ -334,6 +334,9 @@ class Node(Thread): t = Transfer.get(item.id) if not t.added: # transfer was canceled + trigger_event('transfer', { + 'id': item.id, 'progress': -1 + }) return False else: t.progress = size / item.info['size'] diff --git a/static/js/appPanel.js b/static/js/appPanel.js index 40fee21..61f9d54 100644 --- a/static/js/appPanel.js +++ b/static/js/appPanel.js @@ -56,7 +56,7 @@ oml.ui.appPanel = function() { oml.bindEvent({ transfer: Ox.throttle(function(data) { - var mediastate = data.progress < -1 + var mediastate = data.progress == -1 ? 'unavailable' : data.progress < 1 ? 'transferring'