mirror of
https://github.com/transmission/transmission
synced 2025-01-03 05:25:52 +00:00
fix: WebUI render html entity in torrent ratio (#6491)
This commit is contained in:
parent
df1dc5812c
commit
3b017dbd86
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ export class StatisticsDialog extends EventTarget {
|
|||
let ratio = Utils.ratio(s.uploadedBytes, s.downloadedBytes);
|
||||
setTextContent(this.elements.session.up, fmt.size(s.uploadedBytes));
|
||||
setTextContent(this.elements.session.down, fmt.size(s.downloadedBytes));
|
||||
setTextContent(this.elements.session.ratio, fmt.ratioString(ratio));
|
||||
this.elements.session.ratio.innerHTML = fmt.ratioString(ratio);
|
||||
setTextContent(
|
||||
this.elements.session.time,
|
||||
fmt.timeInterval(s.secondsActive),
|
||||
|
@ -62,7 +62,7 @@ export class StatisticsDialog extends EventTarget {
|
|||
ratio = Utils.ratio(s.uploadedBytes, s.downloadedBytes);
|
||||
setTextContent(this.elements.total.up, fmt.size(s.uploadedBytes));
|
||||
setTextContent(this.elements.total.down, fmt.size(s.downloadedBytes));
|
||||
setTextContent(this.elements.total.ratio, fmt.ratioString(ratio));
|
||||
this.elements.total.ratio.innerHTML = fmt.ratioString(ratio);
|
||||
setTextContent(this.elements.total.time, fmt.timeInterval(s.secondsActive));
|
||||
}
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ export class TorrentRendererFull {
|
|||
|
||||
// progress details
|
||||
e = root._progress_details_container;
|
||||
setTextContent(e, TorrentRendererFull.getProgressDetails(controller, t));
|
||||
e.innerHTML = TorrentRendererFull.getProgressDetails(controller, t);
|
||||
|
||||
// progressbar
|
||||
TorrentRendererHelper.renderProgressbar(controller, t, root._progressbar);
|
||||
|
|
Loading…
Reference in a new issue