Merge pull request #4706 from jaredevantabor/copy-move-group

fixing selection on the copy/move groups & hosts lists
This commit is contained in:
Jared Tabor
2017-01-13 11:27:53 -08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
$scope.item = group; $scope.item = group;
$scope.submitMode = $stateParams.groups === undefined ? 'move' : 'copy'; $scope.submitMode = $stateParams.groups === undefined ? 'move' : 'copy';
$scope['toggle_'+ list.iterator] = function(id){ $scope.toggle_row = function(id){
// toggle off anything else currently selected // toggle off anything else currently selected
_.forEach($scope.groups, (item) => {return item.id === id ? item.checked = 1 : item.checked = null;}); _.forEach($scope.groups, (item) => {return item.id === id ? item.checked = 1 : item.checked = null;});
// yoink the currently selected thing // yoink the currently selected thing

View File

@@ -11,7 +11,7 @@
$scope.item = host; $scope.item = host;
$scope.submitMode = 'copy'; $scope.submitMode = 'copy';
$scope['toggle_'+ list.iterator] = function(id){ $scope.toggle_row = function(id){
// toggle off anything else currently selected // toggle off anything else currently selected
_.forEach($scope.groups, (item) => {return item.id === id ? item.checked = 1 : item.checked = null;}); _.forEach($scope.groups, (item) => {return item.id === id ? item.checked = 1 : item.checked = null;});
// yoink the currently selected thing // yoink the currently selected thing