Changeset 6452
- Timestamp:
- Aug 7, 2008, 7:41:33 PM (13 years ago)
- Location:
- trunk/web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/index.html
r6418 r6452 196 196 Please select a .torrent file to upload: 197 197 <input type='file' name='torrent_file' id='torrent_upload_file'/> 198 <label>Alternatively, you may specify a URL:</label>199 <input type='text' name='torrent_url' id='torrent_upload_url' />200 198 </div> 201 199 <a href="#upload" id="upload_confirm_button">Upload</a> -
trunk/web/javascript/transmission.js
r6401 r6452 499 499 500 500 confirmUploadClicked: function(event) { 501 var url_data = jQuery.fieldValue($("#torrent_upload_url")[0]); 502 if( url_data.length ) 503 transmission.remote.addTorrentByURL(); 504 else 505 transmission.uploadTorrentFile(true); 501 transmission.uploadTorrentFile( true ); 506 502 transmission.hideUploadDialog( ); 507 503 }, -
trunk/web/javascript/transmission.remote.js
r6404 r6452 131 131 remote.loadDaemonPrefs(); 132 132 }, "json" ); 133 }, 134 135 /* 136 * Upload Torrent by URL 137 addTorrentByURL: function() { 138 $('#torrent_upload_form')[0].action = 'remote/index.php?action=addTorrentByURL¶m=[]'; 139 $('#torrent_upload_form').ajaxSubmit({dataType: 'script', type: 'POST'}); 140 }, 141 */ 133 } 142 134 };
Note: See TracChangeset
for help on using the changeset viewer.