diff --git a/web/javascript/transmission.remote.js b/web/javascript/transmission.remote.js index 0b2b69777..411548b81 100644 --- a/web/javascript/transmission.remote.js +++ b/web/javascript/transmission.remote.js @@ -171,13 +171,18 @@ TransmissionRemote.prototype = this.sendTorrentCommand( 'torrent-verify', torrents ); }, addTorrentByUrl: function( url, options ) { - this.sendRequest( RPC._Root, $.toJSON({ + var remote = this; + var o = { method: 'torrent-add', arguments: { paused: (options.paused ? 'true' : 'false'), filename: url } - }) ); + }; + + this.sendRequest(o, function() { + remote.loadTorrents(); + } ); }, savePrefs: function( args ) { var remote = this;