Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Micdu70 committed Jan 3, 2022
1 parent 9be549f commit 28fa12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/datadir/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ theWebUI.showDataDirDlg = function( d )
var is_multy = false;
if( id && (id.length==40) && this.torrents[id] )
{
is_done = this.torrents[id].done.trim() == 1000;
is_multy = this.torrents[id].multi_file.trim() != "0";
is_done = String(this.torrents[id].done).trim() === "1000";
is_multy = String(this.torrents[id].multi_file).trim() !== "0";
}
$('#edit_datadir').val( d.savepath.trim() );
$('#btn_datadir_ok').prop("disabled",false);
Expand Down

0 comments on commit 28fa12c

Please sign in to comment.