Fix typos

This commit is contained in:
Chocobo1 2023-06-25 15:45:18 +08:00
parent 88bd4f270f
commit 6680fdda18
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
71 changed files with 164 additions and 164 deletions

View file

@ -1135,9 +1135,9 @@ window.qBittorrent.DynamicTable = (function() {
// progress
this.columns['progress'].updateTd = function(td, row) {
const progress = this.getRowValue(row);
let progressFormated = (progress * 100).round(1);
if (progressFormated == 100.0 && progress != 1.0)
progressFormated = 99.9;
let progressFormatted = (progress * 100).round(1);
if (progressFormatted == 100.0 && progress != 1.0)
progressFormatted = 99.9;
if (td.getChildren('div').length > 0) {
const div = td.getChildren('div')[0];
@ -1145,13 +1145,13 @@ window.qBittorrent.DynamicTable = (function() {
td.resized = false;
div.setWidth(ProgressColumnWidth - 5);
}
if (div.getValue() != progressFormated)
div.setValue(progressFormated);
if (div.getValue() != progressFormatted)
div.setValue(progressFormatted);
}
else {
if (ProgressColumnWidth < 0)
ProgressColumnWidth = td.offsetWidth;
td.adopt(new window.qBittorrent.ProgressBar.ProgressBar(progressFormated.toFloat(), {
td.adopt(new window.qBittorrent.ProgressBar.ProgressBar(progressFormatted.toFloat(), {
'width': ProgressColumnWidth - 5
}));
td.resized = false;
@ -1592,12 +1592,12 @@ window.qBittorrent.DynamicTable = (function() {
// progress
this.columns['progress'].updateTd = function(td, row) {
const progress = this.getRowValue(row);
let progressFormated = (progress * 100).round(1);
if (progressFormated == 100.0 && progress != 1.0)
progressFormated = 99.9;
progressFormated += "%";
td.set('text', progressFormated);
td.set('title', progressFormated);
let progressFormatted = (progress * 100).round(1);
if (progressFormatted == 100.0 && progress != 1.0)
progressFormatted = 99.9;
progressFormatted += "%";
td.set('text', progressFormatted);
td.set('title', progressFormatted);
};
// dl_speed, up_speed
@ -3064,7 +3064,7 @@ window.qBittorrent.DynamicTable = (function() {
filterText: '',
filterdLength: function() {
filteredLength: function() {
return this.tableBody.getElements('tr').length;
},