(web) #1147: remove "add torrent by URL" from web client

This commit is contained in:
Charles Kerr
2008-08-07 19:41:33 +00:00
parent efadcd8926
commit 4c7ca15f97
3 changed files with 2 additions and 16 deletions

View File

@@ -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( );
},

View File

@@ -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&param=[]';
$('#torrent_upload_form').ajaxSubmit({dataType: 'script', type: 'POST'});
},
*/
}
};