Fixup some formatting leftovers (JS)
This commit is contained in:
parent
7aa12a025d
commit
3ba0b9df15
|
@ -5,5 +5,6 @@
|
||||||
"indent_with_tabs": false,
|
"indent_with_tabs": false,
|
||||||
"preserve_newlines": true,
|
"preserve_newlines": true,
|
||||||
"max_preserve_newlines": 2,
|
"max_preserve_newlines": 2,
|
||||||
|
"end_with_newline": true,
|
||||||
"jslint_happy": true
|
"jslint_happy": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ TransmissionRemote.prototype = {
|
||||||
|
|
||||||
sendRequest: function (data, callback, context, async) {
|
sendRequest: function (data, callback, context, async) {
|
||||||
var remote = this;
|
var remote = this;
|
||||||
if (typeof async != 'boolean') {
|
if (typeof (async) != 'boolean') {
|
||||||
async = true;
|
async = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ TorrentRendererHelper.formatDL = function (t) {
|
||||||
return '▼' + Transmission.fmt.speedBps(t.getDownloadSpeed());
|
return '▼' + Transmission.fmt.speedBps(t.getDownloadSpeed());
|
||||||
};
|
};
|
||||||
|
|
||||||
TorrentRendererHelper.formatETA = function(t) {
|
TorrentRendererHelper.formatETA = function (t) {
|
||||||
var eta = t.getETA();
|
var eta = t.getETA();
|
||||||
if (eta < 0 || eta >= (999 * 60 * 60)) {
|
if (eta < 0 || eta >= (999 * 60 * 60)) {
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in New Issue