From ace531e8ae7aa822a1f873b0bbeac8ea0f5e987f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 17 Jun 2017 03:49:30 +0100 Subject: [PATCH] [WebUI] Fix testing array after removing torrents --- deluge/ui/web/js/deluge-all/RemoveWindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-all/RemoveWindow.js b/deluge/ui/web/js/deluge-all/RemoveWindow.js index d4c595a56..070e86ca8 100644 --- a/deluge/ui/web/js/deluge-all/RemoveWindow.js +++ b/deluge/ui/web/js/deluge-all/RemoveWindow.js @@ -38,7 +38,7 @@ Deluge.RemoveWindow = Ext.extend(Ext.Window, { remove: function(removeData) { deluge.client.core.remove_torrents(this.torrentIds, removeData, { success: function(result) { - if (result) { + if (result == true) { console.log('Error(s) occured when trying to delete torrent(s).'); } this.onRemoved(this.torrentIds);