From 805691794516841ce5c774eee087a655cec2f123 Mon Sep 17 00:00:00 2001 From: Malcolm Jarvis Date: Wed, 18 Mar 2009 00:47:25 +0000 Subject: [PATCH] Fixing remove data in webui --- web/javascript/transmission.remote.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/web/javascript/transmission.remote.js b/web/javascript/transmission.remote.js index 9bb84df50..803e7b50b 100644 --- a/web/javascript/transmission.remote.js +++ b/web/javascript/transmission.remote.js @@ -152,17 +152,20 @@ TransmissionRemote.prototype = }, removeTorrentsAndData: function( torrents ) { var remote = this, - o = { }; - o.method = 'torrent-remove'; - o.arguments = { }; - o.arguments['delete-local-data'] = true; - o.arguments.ids = [ ]; + var o = { + method: 'torrent-remove', + arguments: { + 'delete-local-data': true, + ids: [ ] + } + }; + if( torrents != null ) for( var i=0, len=torrents.length; i