change the priority renderer to return '' if there is no value

This commit is contained in:
Damien Churchill 2010-01-25 15:10:14 +00:00
parent fa0d6b1aa0
commit 7af689e57f
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ Copyright:
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]));
}