]> granicus.if.org Git - transmission/commitdiff
(web) #1147: remove "add torrent by URL" from web client
authorCharles Kerr <charles@transmissionbt.com>
Thu, 7 Aug 2008 19:41:33 +0000 (19:41 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Thu, 7 Aug 2008 19:41:33 +0000 (19:41 +0000)
web/index.html
web/javascript/transmission.js
web/javascript/transmission.remote.js

index 0b548d66b91d3180ffde47f70ce33241be5d3ffd..3d77e777b198c4a676d89a4e98351eefec4a6ea3 100755 (executable)
                                        <div class="dialog_message">
                                                Please select a .torrent file to upload:
                                                        <input type='file' name='torrent_file' id='torrent_upload_file'/>
-                                               <label>Alternatively, you may specify a URL:</label>
-                                                       <input type='text' name='torrent_url' id='torrent_upload_url' />
                                        </div>
                                        <a href="#upload" id="upload_confirm_button">Upload</a>
                                        <a href="#cancel" id="upload_cancel_button">Cancel</a>
index 81e73acdcc34410e6175c2babeabd29473a88238..ee3376da0f23655e71d8d87222452b698eb6a0d7 100644 (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( );
        },
 
index fd55bab07ee69ec3ba6ef94d8f01260e68980503..1a715793949f3cb8aa54008e82baa038ffb24d0e 100644 (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'});
-       },
-        */
+       }
 };