Changeset 396
- Timestamp:
- 06/30/08 19:32:21 (2 months ago)
- Files:
-
- branches/rpc/web/javascript/transmission.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/rpc/web/javascript/transmission.js
r395 r396 362 362 * Select a range from this torrent to the last clicked torrent 363 363 */ 364 selectRange: function( torrent, doUpdate )364 selectRange: function( torrent, doUpdate ) 365 365 { 366 366 if( !this._last_torrent_clicked ) 367 367 { 368 t orrent.select();368 this.selectTorrent( torrent ); 369 369 } 370 370 else // select the range between the prevous & current … … 463 463 }, 464 464 465 openTorrentClicked: function( event) {465 openTorrentClicked: function( event ) { 466 466 var tr = transmission; 467 467 if( tr.isButtonEnabled( event ) ) { 468 468 $('body').addClass('open_showing'); 469 tr.uploadTorrentFile( );469 tr.uploadTorrentFile( ); 470 470 } 471 471 tr.updateButtonStates(); … … 1096 1096 args.url = '/transmission/upload?paused=' + (this[Prefs._AutoStart] ? 'false' : 'true'); 1097 1097 args.type = 'POST'; 1098 args.dataType = 'json'; 1098 args.dataType = 'xml'; 1099 args.iframe = true; 1099 1100 args.success = function( data ) { 1100 console.log( "success!");1101 console.log( "data is " + data );1102 1101 tr.remote.loadTorrents( ); 1103 1102 tr.togglePeriodicRefresh( true );
