Changeset 396

Show
Ignore:
Timestamp:
06/30/08 19:32:21 (2 months ago)
Author:
charles
Message:

uploading local files works now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/rpc/web/javascript/transmission.js

    r395 r396  
    362362         * Select a range from this torrent to the last clicked torrent 
    363363         */ 
    364         selectRange: function(torrent, doUpdate ) 
     364        selectRange: function( torrent, doUpdate ) 
    365365        { 
    366366                if( !this._last_torrent_clicked ) 
    367367                { 
    368                         torrent.select( ); 
     368                        this.selectTorrent( torrent ); 
    369369                } 
    370370                else // select the range between the prevous & current 
     
    463463        }, 
    464464 
    465         openTorrentClicked: function(event) { 
     465        openTorrentClicked: function( event ) { 
    466466                var tr = transmission; 
    467467                if( tr.isButtonEnabled( event ) ) { 
    468468                        $('body').addClass('open_showing'); 
    469                         tr.uploadTorrentFile(); 
     469                        tr.uploadTorrentFile( ); 
    470470                } 
    471471                tr.updateButtonStates(); 
     
    10961096                        args.url = '/transmission/upload?paused=' + (this[Prefs._AutoStart] ? 'false' : 'true'); 
    10971097                        args.type = 'POST'; 
    1098                         args.dataType = 'json'; 
     1098                        args.dataType = 'xml'; 
     1099                        args.iframe = true; 
    10991100                        args.success = function( data ) { 
    1100                                 console.log( "success!"); 
    1101                                 console.log( "data is " + data ); 
    11021101                                tr.remote.loadTorrents( ); 
    11031102                                tr.togglePeriodicRefresh( true );