Changeset 8120


Ignore:
Timestamp:
Mar 30, 2009, 10:35:13 PM (14 years ago)
Author:
Gimp
Message:

Fixing upload torrent by URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.remote.js

    r8088 r8120  
    172172        },
    173173        addTorrentByUrl: function( url, options ) {
    174                 this.sendRequest( RPC._Root, $.toJSON({
     174                var remote = this;
     175                var o = {
    175176                        method: 'torrent-add',
    176177                        arguments: {
     
    178179                                filename: url
    179180                        }
    180                 }) );
     181                };
     182               
     183                this.sendRequest(o, function() {
     184                        remote.loadTorrents();
     185                } );
    181186        },
    182187        savePrefs: function( args ) {
Note: See TracChangeset for help on using the changeset viewer.