Skip to content

Commit

Permalink
gui: Don't use newfangled ES6 features (fixes #5348)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Dec 5, 2018
1 parent ff2cde4 commit 9e72502
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gui/default/syncthing/core/syncthingController.js
Expand Up @@ -1371,16 +1371,14 @@ angular.module('syncthing.core')
$('#editDevice').modal();
};

$scope.selectAllFolders = function() {
Object.entries($scope.folders).forEach(entry =>{
let id = entry[1].id;
$scope.selectAllFolders = function () {
angular.forEach($scope.folders, function (id) {
$scope.currentDevice.selectedFolders[id] = true;
});
};

$scope.deSelectAllFolders = function() {
Object.entries($scope.folders).forEach(entry =>{
let id = entry[1].id;
$scope.deSelectAllFolders = function () {
angular.forEach($scope.folders, function (id) {
$scope.currentDevice.selectedFolders[id] = false;
});
};
Expand Down

0 comments on commit 9e72502

Please sign in to comment.