Changeset 8120
- Timestamp:
- Mar 30, 2009, 10:35:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/transmission.remote.js
r8088 r8120 172 172 }, 173 173 addTorrentByUrl: function( url, options ) { 174 this.sendRequest( RPC._Root, $.toJSON({ 174 var remote = this; 175 var o = { 175 176 method: 'torrent-add', 176 177 arguments: { … … 178 179 filename: url 179 180 } 180 }) ); 181 }; 182 183 this.sendRequest(o, function() { 184 remote.loadTorrents(); 185 } ); 181 186 }, 182 187 savePrefs: function( args ) {
Note: See TracChangeset
for help on using the changeset viewer.