diff --git a/js/ctrls/download.js b/js/ctrls/download.js index 78c7e41..a4ed340 100644 --- a/js/ctrls/download.js +++ b/js/ctrls/download.js @@ -285,7 +285,7 @@ function( if (files) { var cfiles = ctx.files; for (var i = 0; i < files.length; ++i) { - var cfile = cfiles[i] || (cfiles[i] = {}); + var cfile = cfiles[i] || (cfiles[i] = {}); var file = files[i]; if (file.path !== cfile.path) { cfile.path = file.path; @@ -318,7 +318,7 @@ function( delete ctx.bittorrent; } - ctx.name = btName || dlName || "Unknown"; + ctx.name = btName || dlName || "Unknown"; // collapse the download details initially if (ctx.collapsed === undefined) { @@ -353,7 +353,7 @@ function( return (d.totalLength-d.completedLength) / d.downloadSpeed; } - scope.getProgressClass = function(d) { + scope.getProgressClass = function(d) { switch (d.status) { case "paused": return "progress-info"; diff --git a/js/directives/dgraph.js b/js/directives/dgraph.js index 6e53d23..36e60da 100644 --- a/js/directives/dgraph.js +++ b/js/directives/dgraph.js @@ -61,7 +61,7 @@ angular }, yaxis: { position: "right", - ticks: function(axis) { + ticks: function(axis) { var res = [0]; var round = Math.max(1, Math.ceil(axis.max / yTickBase)); var step = Math.max(1, Math.ceil(round / yTicks)); diff --git a/js/filters/bytes.js b/js/filters/bytes.js index 2ce8cac..7c33501 100644 --- a/js/filters/bytes.js +++ b/js/filters/bytes.js @@ -12,7 +12,7 @@ angular.module('webui.filters.bytes', ["webui.services.utils"]) return function(time) { time = parseInt(time, 10); - if (!time || !isFinite(time)) return "∞"; + if (!time || !isFinite(time)) return "∞"; var secs = time % 60; if (time < 60) return secs + "s"; var mins = Math.floor((time % 3600) / 60) diff --git a/js/services/rpc/rpc.js b/js/services/rpc/rpc.js index 4f5234f..c0d2277 100644 --- a/js/services/rpc/rpc.js +++ b/js/services/rpc/rpc.js @@ -39,7 +39,7 @@ function(syscall, time, alerts, utils, rootScope, uri) { timeout = null; subscriptions = _.filter(subscriptions, function(e) { - return !!e && e.once !== 2; + return !!e && e.once !== 2; }); var subs = subscriptions.slice(); if (!subs.length) { diff --git a/js/services/utils.js b/js/services/utils.js index fc74ad9..f2bc24e 100644 --- a/js/services/utils.js +++ b/js/services/utils.js @@ -11,7 +11,7 @@ angular.module('webui.services.utils', []) return rndBuffer; }; - if (!window.crypto || !crypto.getRandomValues) { + if (!window.crypto || !crypto.getRandomValues) { return rnd16Weak; } return function() { @@ -82,7 +82,7 @@ angular.module('webui.services.utils', []) return function() { var r = rnd16(); r[6] = (r[6] & 0xf) | 0x40; // Version 4 - r[8] = (r[8] & 0x3f) | 0x80; // Version 4y + r[8] = (r[8] & 0x3f) | 0x80; // Version 4y return bt[r[0]] + bt[r[1]] + bt[r[2]] + bt[r[3]] + "-" + bt[r[4]] + bt[r[5]] + "-" + bt[r[6]] + bt[r[7]] + "-" +