change the priority renderer to return '' if there is no value
This commit is contained in:
parent
fa0d6b1aa0
commit
7af689e57f
@ -37,6 +37,7 @@ Copyright:
|
|||||||
return Deluge.progressBar(progress, this.width - 50, progress.toFixed(2) + '%', 0);
|
return Deluge.progressBar(progress, this.width - 50, progress.toFixed(2) + '%', 0);
|
||||||
}
|
}
|
||||||
function priorityRenderer(value) {
|
function priorityRenderer(value) {
|
||||||
|
if (!value) return '';
|
||||||
return String.format('<div class="{0}">{1}</div>', FILE_PRIORITY_CSS[value], _(FILE_PRIORITY[value]));
|
return String.format('<div class="{0}">{1}</div>', FILE_PRIORITY_CSS[value], _(FILE_PRIORITY[value]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user