gui: Don't use newfangled ES6 features (fixes #5348)

This commit is contained in:
Jakob Borg 2018-12-05 12:03:47 +01:00
parent ff2cde469e
commit 9e725026d1

View File

@ -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;
});
};