Author: damoxc

Revision: 4889

Log:
        make the tracker host error filter have an icon

Diff:
Modified: trunk/deluge/ui/web/js/deluge-bars.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-bars.js       2009-03-20 07:59:39 UTC (rev 
4888)
+++ trunk/deluge/ui/web/js/deluge-bars.js       2009-03-20 08:03:54 UTC (rev 
4889)
@@ -347,7 +347,9 @@
                
                var image = '';         
                if (r.store.id == 'tracker_host') {
-                       image = String.format('url(/tracker/{0})', value);
+                       if (value != 'Error') {
+                               image = String.format('url(/tracker/{0})', 
value);
+                       }
                }
                return String.format('<div class="x-deluge-filter x-deluge-{2}" 
style="background-image: {3};">{0} ({1})</div>', value, r.data['count'], lname, 
image);
        },



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to