Author: damoxc
Revision: 4991
Log:
change it so the tracker error filter doesn't have an icon
Diff:
Modified: trunk/deluge/ui/web/js/deluge-bars.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-bars.js 2009-04-02 18:13:29 UTC (rev
4990)
+++ trunk/deluge/ui/web/js/deluge-bars.js 2009-04-02 18:22:08 UTC (rev
4991)
@@ -349,13 +349,21 @@
renderer: function(value, p, r) {
var lname = value.toLowerCase().replace('.', '_');
- var image = '';
+ var image = '';
if (r.store.id == 'tracker_host') {
if (value != 'Error') {
image = String.format('url(/tracker/{0})',
value);
+ } else {
+ lname = null;
}
}
- return String.format('<div class="x-deluge-filter x-deluge-{2}"
style="background-image: {3};">{0} ({1})</div>', value, r.data['count'], lname,
image);
+ if (image) {
+ return String.format('<div class="x-deluge-filter"
style="background-image: {2};">{0} ({1})</div>', value, r.data['count'], image);
+ } else if (lname) {
+ return String.format('<div class="x-deluge-filter
x-deluge-{2}">{0} ({1})</div>', value, r.data['count'], lname);
+ } else {
+ return String.format('<div class="x-deluge-filter">{0}
({1})</div>', value, r.data['count']);
+ }
},
getFilters: function() {
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---