Paul Johnston - 2012-04-19 18:11:06
I needed different text rather than just % progress so simply have this in the UpdateProgress() function:
var progValueHTML = o.progressTemplate;
progValueHTML = progValueHTML.replace('{progress}', (100 * o.current / o.total));
progValueHTML = progValueHTML.replace('{current}', o.current);
progValueHTML = progValueHTML.replace('{total}', o.total);
o.progressValue.innerHTML = progValueHTML;
instead of just:
o.progressValue.innerHTML = o.progressTemplate.replace('{progress}', (100 * o.current / o.total));