Skip to content

Commit

Permalink
Fix code defects
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Mar 14, 2023
1 parent 6fd5224 commit fa30b70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/webui/www/private/rename_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@
}

// Register keyboard events to modal window
// https://github.com/qbittorrent/qBittorrent/pull/18687#discussion_r1135045726
var keyboard;
if (!keyboard) {
var keyboard = new Keyboard({
keyboard = new Keyboard({
defaultEventType: 'keydown',
events: {
'Escape': function(event) {
Expand Down
1 change: 0 additions & 1 deletion src/webui/www/private/scripts/piecesbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ window.qBittorrent.PiecesBar = (() => {
}

function refresh(force) {
const start = Date.now();
if (!this.parentNode)
return;

Expand Down
2 changes: 1 addition & 1 deletion src/webui/www/private/scripts/prop-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ window.qBittorrent.PropFiles = (function() {
};

const multiFileRename = function(hash) {
const win = new MochaUI.Window({
new MochaUI.Window({
id: 'multiRenamePage',
title: "QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView]",
data: { hash: hash, selectedRows: torrentFilesTable.selectedRows },
Expand Down

0 comments on commit fa30b70

Please sign in to comment.