<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>
},
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( );
},
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'});
- },
- */
+ }
};