(web) fix whitepsaces

This commit is contained in:
Daniel Lee
2010-06-21 13:14:33 +00:00
parent 99318552eb
commit ad9814612d
11 changed files with 254 additions and 262 deletions

View File

@@ -67,7 +67,7 @@ TransmissionRemote.prototype =
: "";
if( !remote._error.length )
remote._error = 'Server not responding';
dialog.confirm('Connection Failed',
'Could not connect to the server. You may need to reload the page to reconnect.',
'Details',
@@ -85,7 +85,7 @@ TransmissionRemote.prototype =
sendRequest: function( data, success, async ) {
remote = this;
if( typeof async != 'boolean' )
async = true;
async = true;
var ajaxSettings = {
url: RPC._Root,
@@ -120,8 +120,8 @@ TransmissionRemote.prototype =
method: 'torrent-get',
arguments: {
fields: Torrent._StaticFields.concat( Torrent._MetaDataFields,
Torrent._DynamicFields,
[ 'files', 'fileStats' ] )
Torrent._DynamicFields,
[ 'files', 'fileStats' ] )
}
};
@@ -136,7 +136,7 @@ TransmissionRemote.prototype =
method: 'torrent-get',
arguments: {
fields: Torrent._StaticFields.concat( Torrent._MetaDataFields,
[ 'files', 'fileStats' ] )
[ 'files', 'fileStats' ] )
}
};
@@ -167,7 +167,7 @@ TransmissionRemote.prototype =
tr.updateTorrentsFileData( data.arguments.torrents );
} );
},
changeFileCommand: function( command, torrent, file ) {
var remote = this;
var torrent_ids = [ torrent.id() ];
@@ -180,7 +180,7 @@ TransmissionRemote.prototype =
remote._controller.refreshTorrents( torrent_ids );
} );
},
sendTorrentSetRequests: function( method, torrent_ids, args, callback ) {
if (!args) args = { };
args['ids'] = torrent_ids;
@@ -193,7 +193,7 @@ TransmissionRemote.prototype =
callback();
});
},
sendTorrentActionRequests: function( method, torrent_ids, callback ) {
this.sendTorrentSetRequests( method, torrent_ids, null, callback );
},
@@ -236,7 +236,6 @@ TransmissionRemote.prototype =
filename: url
}
};
this.sendRequest(o, function() {
remote._controller.refreshTorrents();
} );