From: Charles Kerr Date: Thu, 7 Aug 2008 19:41:33 +0000 (+0000) Subject: (web) #1147: remove "add torrent by URL" from web client X-Git-Tag: 1.32~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c7ca15f971e5df2d7e3413cc4e789d081f2f852;p=transmission (web) #1147: remove "add torrent by URL" from web client --- diff --git a/web/index.html b/web/index.html index 0b548d66b..3d77e777b 100755 --- a/web/index.html +++ b/web/index.html @@ -195,8 +195,6 @@
Please select a .torrent file to upload: - -
Upload Cancel diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 81e73acdc..ee3376da0 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -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( ); }, diff --git a/web/javascript/transmission.remote.js b/web/javascript/transmission.remote.js index fd55bab07..1a7157939 100644 --- a/web/javascript/transmission.remote.js +++ b/web/javascript/transmission.remote.js @@ -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'}); - }, - */ + } };