mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Fix typos
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ window.qBittorrent.MultiRename = (function() {
|
||||
this.onChanged(this.matchedFiles);
|
||||
},
|
||||
useRegex: false,
|
||||
matchAllOccurences: false,
|
||||
matchAllOccurrences: false,
|
||||
caseSensitive: false,
|
||||
|
||||
// Replacement Options
|
||||
@@ -129,7 +129,7 @@ window.qBittorrent.MultiRename = (function() {
|
||||
|
||||
// Setup regex flags
|
||||
let regexFlags = "";
|
||||
if (this.matchAllOccurences) { regexFlags += "g"; }
|
||||
if (this.matchAllOccurrences) { regexFlags += "g"; }
|
||||
if (!this.caseSensitive) { regexFlags += "i"; }
|
||||
|
||||
// Setup regex search
|
||||
|
||||
Reference in New Issue
Block a user