diff options
Diffstat (limited to 'src/main/resources/controllers')
-rw-r--r-- | src/main/resources/controllers/groupFieldController.js (renamed from src/main/resources/controllers/locationFieldController.js) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/controllers/locationFieldController.js b/src/main/resources/controllers/groupFieldController.js index af2b6fe..3b6f9ea 100644 --- a/src/main/resources/controllers/locationFieldController.js +++ b/src/main/resources/controllers/groupFieldController.js @@ -1,4 +1,4 @@ -angular.module('location').controller('locationFieldController', ['$scope', function locationFieldController($scope) { +angular.module('group').controller('groupFieldController', ['$scope', function groupFieldController($scope) { $scope.data = { id: 0, password: '' }; @@ -10,17 +10,17 @@ angular.module('location').controller('locationFieldController', ['$scope', func $scope.model = JSON.stringify(newValue); }, true); - $scope.selectLocation = function selectLocation($event, id) { + $scope.selectGroup = function selectGroup($event, id) { if (angular.element($event.target).hasClass('bwlp-password-input')) return; $scope.data.password = ''; if ($scope.data.id === id) { $scope.data.id = 0; - angular.element('.selected-location').removeClass('selected-location'); + angular.element('.selected-group').removeClass('selected-group'); return; } $scope.data.id = id; - angular.element('.selected-location').removeClass('selected-location'); - angular.element($event.currentTarget).addClass('selected-location'); + angular.element('.selected-group').removeClass('selected-group'); + angular.element($event.currentTarget).addClass('selected-group'); }; $scope.logout = function logout() { |