From 66495f4b06ec8b7d163f3e84b76ae41385d07f38 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sat, 21 Feb 2009 01:25:26 +0000 Subject: [PATCH] fix displaying the hash in the details tab --- deluge/ui/web/js/deluge-details.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deluge/ui/web/js/deluge-details.js b/deluge/ui/web/js/deluge-details.js index 0e3ae54ef..623be4d83 100644 --- a/deluge/ui/web/js/deluge-details.js +++ b/deluge/ui/web/js/deluge-details.js @@ -157,11 +157,11 @@ Deluge.Details.Details = { } }, - onRequestComplete: function(torrent) { + onRequestComplete: function(torrent, torrentId) { var fsize = Deluge.Formatters.size; var data = { torrent_name: torrent.name, - hash: torrent.id, + hash: torrentId, path: torrent.save_path, size: fsize(torrent.total_size), files: torrent.num_files, @@ -182,12 +182,12 @@ Deluge.Details.Details = { update: function(torrentId) { if (!this.fields) { - this.getFields(torrentId); + this.getFields(); // the pane isn't loaded yet and subsequently needs to pause if (!this.fields) return; } Deluge.Client.core.get_torrent_status(torrentId, Deluge.Keys.Details, { - onSuccess: this.onRequestComplete.bind(this) + onSuccess: this.onRequestComplete.bindWithEvent(this, torrentId) }); } }