mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
gui: Don't use newfangled ES6 features (fixes #5348)
This commit is contained in:
parent
ba4554f053
commit
da39dfada3
@ -1371,16 +1371,14 @@ angular.module('syncthing.core')
|
|||||||
$('#editDevice').modal();
|
$('#editDevice').modal();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.selectAllFolders = function() {
|
$scope.selectAllFolders = function () {
|
||||||
Object.entries($scope.folders).forEach(entry =>{
|
angular.forEach($scope.folders, function (id) {
|
||||||
let id = entry[1].id;
|
|
||||||
$scope.currentDevice.selectedFolders[id] = true;
|
$scope.currentDevice.selectedFolders[id] = true;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.deSelectAllFolders = function() {
|
$scope.deSelectAllFolders = function () {
|
||||||
Object.entries($scope.folders).forEach(entry =>{
|
angular.forEach($scope.folders, function (id) {
|
||||||
let id = entry[1].id;
|
|
||||||
$scope.currentDevice.selectedFolders[id] = false;
|
$scope.currentDevice.selectedFolders[id] = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user