Changeset 7764
- Timestamp:
- Jan 20, 2009, 6:58:57 AM (13 years ago)
- Location:
- branches/1.5x/web
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5x/web/index.html
r6852 r7764 256 256 enctype="multipart/form-data" target="torrent_upload_frame"> 257 257 <div class="dialog_message"> 258 Please select a torrent file to upload:258 <label for="torrent_upload_file">Please select a torrent file to upload:</label> 259 259 <input type="file" name="torrent_file" id="torrent_upload_file"/> 260 <label for="torrent_upload_url">Or enter a URL:</label> 261 <input type="text" id="torrent_upload_url"/> 260 262 </div> 261 263 <a href="#upload" id="upload_confirm_button">Upload</a> -
branches/1.5x/web/javascript/transmission.js
r7300 r7764 1165 1165 var tr = this; 1166 1166 var args = { }; 1167 args.url = '/transmission/upload?paused=' + (this[Prefs._AutoStart] ? 'false' : 'true'); 1168 args.type = 'POST'; 1169 args.dataType = 'xml'; 1170 args.iframe = true; 1171 args.success = function( data ) { 1172 tr.remote.loadTorrents( ); 1173 tr.togglePeriodicRefresh( true ); 1174 }; 1175 this.togglePeriodicRefresh( false ); 1176 $('#torrent_upload_form').ajaxSubmit( args ); 1167 if ('' != $('#torrent_upload_url').val()) { 1168 tr.remote.addTorrentByUrl($('#torrent_upload_url').val(), { paused: !this[Prefs._Autostart] }); 1169 } else { 1170 args.url = '/transmission/upload?paused=' + (this[Prefs._AutoStart] ? 'false' : 'true'); 1171 args.type = 'POST'; 1172 args.dataType = 'xml'; 1173 args.iframe = true; 1174 args.success = function( data ) { 1175 tr.remote.loadTorrents( ); 1176 tr.togglePeriodicRefresh( true ); 1177 }; 1178 this.togglePeriodicRefresh( false ); 1179 $('#torrent_upload_form').ajaxSubmit( args ); 1180 } 1177 1181 } 1178 1182 }, -
branches/1.5x/web/javascript/transmission.remote.js
r6809 r7764 122 122 this.sendTorrentCommand( 'torrent-remove', torrents ); 123 123 }, 124 124 addTorrentByUrl: function( url, options ) { 125 this.sendRequest( RPC._Root, $.toJSON({ 126 method: 'torrent-add', 127 arguments: { 128 paused: (options.paused ? 'true' : 'false'), 129 filename: url 130 } 131 }) ); 132 }, 125 133 savePrefs: function( args ) { 126 134 var remote = this; -
branches/1.5x/web/stylesheets/common.css
r7088 r7764 727 727 div#upload_container div.dialog_window div.dialog_message input { 728 728 width: 249px; 729 margin: 10px 0 0 0;729 margin: 3px 0 0 0; 730 730 display: block; 731 731 }
Note: See TracChangeset
for help on using the changeset viewer.