mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
fix displaying the hash in the details tab
This commit is contained in:
parent
8f0766bfe5
commit
66495f4b06
1 changed files with 4 additions and 4 deletions
|
@ -157,11 +157,11 @@ Deluge.Details.Details = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onRequestComplete: function(torrent) {
|
onRequestComplete: function(torrent, torrentId) {
|
||||||
var fsize = Deluge.Formatters.size;
|
var fsize = Deluge.Formatters.size;
|
||||||
var data = {
|
var data = {
|
||||||
torrent_name: torrent.name,
|
torrent_name: torrent.name,
|
||||||
hash: torrent.id,
|
hash: torrentId,
|
||||||
path: torrent.save_path,
|
path: torrent.save_path,
|
||||||
size: fsize(torrent.total_size),
|
size: fsize(torrent.total_size),
|
||||||
files: torrent.num_files,
|
files: torrent.num_files,
|
||||||
|
@ -182,12 +182,12 @@ Deluge.Details.Details = {
|
||||||
|
|
||||||
update: function(torrentId) {
|
update: function(torrentId) {
|
||||||
if (!this.fields) {
|
if (!this.fields) {
|
||||||
this.getFields(torrentId);
|
this.getFields();
|
||||||
// the pane isn't loaded yet and subsequently needs to pause
|
// the pane isn't loaded yet and subsequently needs to pause
|
||||||
if (!this.fields) return;
|
if (!this.fields) return;
|
||||||
}
|
}
|
||||||
Deluge.Client.core.get_torrent_status(torrentId, Deluge.Keys.Details, {
|
Deluge.Client.core.get_torrent_status(torrentId, Deluge.Keys.Details, {
|
||||||
onSuccess: this.onRequestComplete.bind(this)
|
onSuccess: this.onRequestComplete.bindWithEvent(this, torrentId)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue