From: Mike Gelfand Date: Sun, 17 Feb 2019 14:51:13 +0000 (+0300) Subject: Fixup some formatting leftovers (JS) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ba0b9df150ff92a3afeb626e19d1e2cdc0690ca;p=transmission Fixup some formatting leftovers (JS) --- diff --git a/.jsbeautifyrc b/.jsbeautifyrc index ea296614b..87f70e067 100644 --- a/.jsbeautifyrc +++ b/.jsbeautifyrc @@ -5,5 +5,6 @@ "indent_with_tabs": false, "preserve_newlines": true, "max_preserve_newlines": 2, + "end_with_newline": true, "jslint_happy": true } diff --git a/web/javascript/remote.js b/web/javascript/remote.js index bbfc9939a..21714c226 100644 --- a/web/javascript/remote.js +++ b/web/javascript/remote.js @@ -74,7 +74,7 @@ TransmissionRemote.prototype = { sendRequest: function (data, callback, context, async) { var remote = this; - if (typeof async != 'boolean') { + if (typeof (async) != 'boolean') { async = true; }; diff --git a/web/javascript/torrent-row.js b/web/javascript/torrent-row.js index 5cd3a19b4..81e1bb528 100644 --- a/web/javascript/torrent-row.js +++ b/web/javascript/torrent-row.js @@ -107,7 +107,7 @@ TorrentRendererHelper.formatDL = function (t) { return '▼' + Transmission.fmt.speedBps(t.getDownloadSpeed()); }; -TorrentRendererHelper.formatETA = function(t) { +TorrentRendererHelper.formatETA = function (t) { var eta = t.getETA(); if (eta < 0 || eta >= (999 * 60 * 60)) { return "";