Author: damoxc
Revision: 6138
Log:
change the priority renderer to return '' if there is no value
Diff:
Modified: trunk/deluge/ui/web/js/deluge-all/Deluge.Details.Files.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-all/Deluge.Details.Files.js 2010-01-25
09:46:08 UTC (rev 6137)
+++ trunk/deluge/ui/web/js/deluge-all/Deluge.Details.Files.js 2010-01-25
15:10:14 UTC (rev 6138)
@@ -37,6 +37,7 @@
return Deluge.progressBar(progress, this.width - 50,
progress.toFixed(2) + '%', 0);
}
function priorityRenderer(value) {
+ if (!value) return '';
return String.format('<div class="{0}">{1}</div>',
FILE_PRIORITY_CSS[value], _(FILE_PRIORITY[value]));
}
--
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.