Fix typos

This commit is contained in:
Chocobo1
2020-10-20 18:44:04 +08:00
parent e4fe3bfe35
commit 7e258bfe38
7 changed files with 31 additions and 31 deletions

View File

@@ -548,7 +548,7 @@ window.qBittorrent.ContextMenu = (function() {
this.menu.getElement('a[href$=newSubscription]').parentNode.addClass('separator');
switch (selectedRows.length) {
case 0:
// remove seperator on top of newSubscription entry to avoid double line
// remove separator on top of newSubscription entry to avoid double line
this.menu.getElement('a[href$=newSubscription]').parentNode.removeClass('separator');
// menu when nothing selected
this.hideItem('update');

View File

@@ -2062,9 +2062,9 @@ window.qBittorrent.DynamicTable = (function() {
}
row['data'] = {};
tds[0].style.overflow = 'visible';
let indentaion = row.full_data.indentaion;
tds[0].style.paddingLeft = (indentaion * 32 + 4) + 'px';
tds[1].style.paddingLeft = (indentaion * 32 + 4) + 'px';
let indentation = row.full_data.indentation;
tds[0].style.paddingLeft = (indentation * 32 + 4) + 'px';
tds[1].style.paddingLeft = (indentation * 32 + 4) + 'px';
},
updateIcons: function() {
// state_icon

View File

@@ -428,14 +428,14 @@
return torrentDate;
})());
// Place in iframe with sandbox atribute to prevent js execution
// Place in iframe with sandbox attribute to prevent js execution
let torrentDescription = document.createRange().createContextualFragment('<iframe sandbox id="rssDescription"></iframe>');
$('rssDetailsView').append(torrentDescription);
document.getElementById('rssDescription').srcdoc = '<html><head><link rel="stylesheet" type="text/css" href="css/style.css" /></head><body>' + article.description + "</body></html>";
//calculate height to fill screen
document.getElementById('rssDescription').style.height =
"calc(100% - " + document.getElementById('rssTorrentDetailsName').offsetHeight + "px - " +
"calc(100% - " + document.getElementById('rssTorrentDetailsName').offsetHeight + "px - " +
document.getElementById('rssTorrentDetailsDate').offsetHeight + "px - 5px)";
}
};
@@ -474,7 +474,7 @@
};
recFlatten(response);
// check if rows matche flattend response
// check if rows matches flattened response
let match = false;
if (rssFeedTable.rows.getLength() - 1 === flattenedResp.length) {
match = true;
@@ -551,7 +551,7 @@
showRssFeed(r.fullName);
}
else {
// calculate read differnce and update feed data
// calculate read difference and update feed data
let readDifference = 0;
let readChanged = false;
for (let i = 0; i < r.articles.length; ++i) {
@@ -570,7 +570,7 @@
rssFeedTable.rows.filter((row) => r.fullName.slice(0, row.full_data.dataPath.length) === row.full_data.dataPath)
.each((row) => row.full_data.unread += readDifference);
// if feed that is opened changed update dynamicly
// if feed that is opened changed update dynamically
if (openedFeedPath !== undefined && r.fullName.slice(0, openedFeedPath.length) === openedFeedPath) {
for (let i = 0; i < r.articles.length; ++i) {
let matchingRow = rssArticleTable.rows.filter((row) => row.full_data.feedUid === r.uid)
@@ -599,7 +599,7 @@
name: 'Unread',
unread: 0,
status: 'unread',
indentaion: 0,
indentation: 0,
dataUid: '',
dataUrl: '',
dataPath: ''
@@ -613,7 +613,7 @@
name: dataEntry.name,
unread: 0,
status: 'isFolder',
indentaion: dataEntry.depth,
indentation: dataEntry.depth,
dataUid: '',
dataUrl: '',
dataPath: dataEntry.fullName
@@ -631,7 +631,7 @@
name: dataEntry.name,
unread: 0,
status: status,
indentaion: dataEntry.depth,
indentation: dataEntry.depth,
dataUid: dataEntry.uid,
dataUrl: dataEntry.url,
dataPath: dataEntry.fullName