mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 01:40:08 +00:00
remove pointless regex stuff
This commit is contained in:
parent
ce2e089d63
commit
72690f5328
@ -43,7 +43,6 @@ var tpl = '<div class="x-progress-wrap">' +
|
||||
'</div>';
|
||||
|
||||
function progress(value, p, r) {
|
||||
var width = p['style'].match(/width:\s*(\d+)px/)[1].toInt()
|
||||
var progress = value.toInt();
|
||||
return String.format(tpl, value.toFixed(2), r.data['state'], progress);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user