mirror of https://github.com/Jackett/Jackett
GUI: fix DL/UL factor rounding
This commit is contained in:
parent
9610965979
commit
89dfac3009
|
@ -738,9 +738,9 @@ function updateReleasesRow(row)
|
||||||
if (DownloadVolumeFactor == 0) {
|
if (DownloadVolumeFactor == 0) {
|
||||||
labels.append('\n<span class="label label-success">FREELEECH</span>');
|
labels.append('\n<span class="label label-success">FREELEECH</span>');
|
||||||
} else if (DownloadVolumeFactor < 1) {
|
} else if (DownloadVolumeFactor < 1) {
|
||||||
labels.append('\n<span class="label label-primary">' + DownloadVolumeFactor * 100 + '%DL</span>');
|
labels.append('\n<span class="label label-primary">' + (DownloadVolumeFactor * 100).toFixed(0) + '%DL</span>');
|
||||||
} else if (DownloadVolumeFactor > 1) {
|
} else if (DownloadVolumeFactor > 1) {
|
||||||
labels.append('\n<span class="label label-danger">' + DownloadVolumeFactor * 100 + '%DL</span>');
|
labels.append('\n<span class="label label-danger">' + (DownloadVolumeFactor * 100).toFixed(0) + '%DL</span>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -748,7 +748,7 @@ function updateReleasesRow(row)
|
||||||
if (UploadVolumeFactor == 0) {
|
if (UploadVolumeFactor == 0) {
|
||||||
labels.append('\n<span class="label label-warning">NO UPLOAD</span>');
|
labels.append('\n<span class="label label-warning">NO UPLOAD</span>');
|
||||||
} else if (UploadVolumeFactor != 1) {
|
} else if (UploadVolumeFactor != 1) {
|
||||||
labels.append('\n<span class="label label-info">' + UploadVolumeFactor * 100 + '%UL</span>');
|
labels.append('\n<span class="label label-info">' + (UploadVolumeFactor * 100).toFixed(0) + '%UL</span>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -663,6 +663,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
||||||
<script type="text/javascript" src="../custom.js?changed=20180709"></script>
|
<script type="text/javascript" src="../custom.js?changed=20180710"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue