Fix progress bar display

This commit is contained in:
Calum Lind 2012-02-18 18:10:36 +00:00
parent 966fc6f64f
commit ea75828f25

View File

@ -51,7 +51,7 @@
value = new Number(value);
var progress = value;
var text = r.data['state'] + ' ' + value.toFixed(2) + '%';
var width = new Number(p.style.match(/\w+:\s*(\d+)\w+/)[1]);
var width = new Number(this.style.match(/\w+:\s*(\d+)\w+/)[1]);
return Deluge.progressBar(value, width - 8, text);
}
function seedsRenderer(value, p, r) {