diff --git a/Changelog b/Changelog index 22942f092..f6efb4cc2 100644 --- a/Changelog +++ b/Changelog @@ -36,6 +36,7 @@ - WEB UI: Remodeled Web UI to match new qBittorrent UI (Properties and preferences available) - WEB UI: Added internationalization support - WEB UI: Reduced computation in Javascript (do this one server side instead) + - WEB UI: Fixed Transfer list flickering - COSMETIC: Merged download / upload lists - COSMETIC: Torrents can be filtered based on their status - COSMETIC: Torrent properties are now displayed in main window diff --git a/src/webui/scripts/client.js b/src/webui/scripts/client.js index 7a3c9636c..1c4fce84f 100644 --- a/src/webui/scripts/client.js +++ b/src/webui/scripts/client.js @@ -91,33 +91,9 @@ window.addEvent('domready', function(){ initializeWindows(); var r=0; var waiting=false; + var stateToImg = function(state){ - switch (state) - { - case 'pausedUP': - return ''; - case 'pausedDL': - return ''; - case 'seeding': - return ''; - case 'stalledUP': - return ''; - case 'checkingUP': - return ''; - case 'checkingDL': - return ''; - case 'downloading': - return ''; - case 'stalledDL': - return ''; - case 'queuedUP': - return ''; - case 'queuedDL': - return ''; - default: - return ''; - } - return ''; + return 'images/skin/'+state+'.png'; }; var ajaxfn = function(){ var queueing_enabled = false; diff --git a/src/webui/scripts/dynamicTable.js b/src/webui/scripts/dynamicTable.js index 8d3c6b49d..aad45454f 100644 --- a/src/webui/scripts/dynamicTable.js +++ b/src/webui/scripts/dynamicTable.js @@ -139,7 +139,11 @@ var dynamicTable = new Class ({ if(i==this.progressIndex) { td.adopt(new ProgressBar(row[i].toFloat(), {width:80})); } else { - td.set('html', row[i]); + if(i==0) { + td.adopt(new Element('img', {'src':row[i]})); + } else { + td.set('html', row[i]); + } } td.injectInside(tr); }; @@ -257,10 +261,15 @@ var dynamicTable = new Class ({ var tds = tr.getElements('td'); for(var i=0; i