mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(web) #1147: remove "add torrent by URL" from web client
This commit is contained in:
@@ -498,11 +498,7 @@ Transmission.prototype =
|
||||
},
|
||||
|
||||
confirmUploadClicked: function(event) {
|
||||
var url_data = jQuery.fieldValue($("#torrent_upload_url")[0]);
|
||||
if( url_data.length )
|
||||
transmission.remote.addTorrentByURL();
|
||||
else
|
||||
transmission.uploadTorrentFile(true);
|
||||
transmission.uploadTorrentFile( true );
|
||||
transmission.hideUploadDialog( );
|
||||
},
|
||||
|
||||
|
||||
@@ -130,13 +130,5 @@ TransmissionRemote.prototype =
|
||||
this.sendRequest( RPC._Root, $.toJSON(o), function(){
|
||||
remote.loadDaemonPrefs();
|
||||
}, "json" );
|
||||
},
|
||||
|
||||
/*
|
||||
* Upload Torrent by URL
|
||||
addTorrentByURL: function() {
|
||||
$('#torrent_upload_form')[0].action = 'remote/index.php?action=addTorrentByURL¶m=[]';
|
||||
$('#torrent_upload_form').ajaxSubmit({dataType: 'script', type: 'POST'});
|
||||
},
|
||||
*/
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user