From d9b3415decfbbf7f8517d9b2a27838f36b64757c Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Tue, 23 Apr 2019 19:37:51 +0200 Subject: [PATCH] gui: Semicolon insertion (#5666) --- gui/default/syncthing/app.js | 4 ++-- gui/default/syncthing/core/syncthingController.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gui/default/syncthing/app.js b/gui/default/syncthing/app.js index 695aa857..493eb3ed 100644 --- a/gui/default/syncthing/app.js +++ b/gui/default/syncthing/app.js @@ -179,7 +179,7 @@ function buildTree(children) { key: keySoFar.join('/'), folder: true, children: [] - } + }; parent.children.push(child); parent = child; } @@ -209,7 +209,7 @@ function unitPrefixed(input, binary) { var i = ''; if (binary) { factor = 1024; - i = 'i' + i = 'i'; } if (input > factor * factor * factor * factor * 1000) { // Don't show any decimals for more than 4 digits diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index f3caa756..b47f1777 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -479,7 +479,7 @@ angular.module('syncthing.core') $scope.completion[device]._needItems = 0; } else { $scope.completion[device]._total = Math.floor(100 * (1 - needed / total)); - $scope.completion[device]._needBytes = needed + $scope.completion[device]._needBytes = needed; $scope.completion[device]._needItems = items + deletes; } @@ -1172,7 +1172,7 @@ angular.module('syncthing.core') } }); } - } + }; $scope.editSettings = function () { // Make a working copy @@ -1253,7 +1253,7 @@ angular.module('syncthing.core') var ignoredFoldersEquals = angular.equals($scope.config.devices, $scope.tmpDevices); console.log("settings equals - options: " + optionsEqual + " gui: " + guiEquals + " ignDev: " + ignoredDevicesEquals + " ignFol: " + ignoredFoldersEquals); return !optionsEqual || !guiEquals || !ignoredDevicesEquals || !ignoredFoldersEquals; - } + }; $scope.saveSettings = function () { // Make sure something changed @@ -1534,7 +1534,7 @@ angular.module('syncthing.core') $scope.thisDevice = function () { return $scope.thisDeviceIn($scope.devices); - } + }; $scope.thisDeviceIn = function (l) { for (var i = 0; i < l.length; i++) { @@ -1573,7 +1573,7 @@ angular.module('syncthing.core') } }); return errs; - } + }; $scope.friendlyDevices = function (str) { for (var i = 0; i < $scope.devices.length; i++) { @@ -1888,7 +1888,7 @@ angular.module('syncthing.core') } var label = $scope.folders[folderID].label; return label && label.length > 0 ? label : folderID; - } + }; $scope.deleteFolder = function (id) { $('#editFolder').modal('hide');