improved formatting of durations in url

This commit is contained in:
rolux 2011-08-24 21:11:02 +00:00
parent 9eacf537fb
commit 5d7d22c960

View file

@ -107,7 +107,7 @@ pandora.URL = (function() {
return prev + (parseFloat(curr) || 0) * Math.pow(60, i);
}, 0);
i == 0 && pandora.UI.set(['videoPosition', item].join('|'), point);
return Ox.formatDuration(point);
return Ox.formatDuration(point, 2).replace(/\.00$/, '');
}).join('-');
pandora.URL.replace(split.join('/'))
}