summaryrefslogtreecommitdiffstats
path: root/src/main/resources/controllers
diff options
context:
space:
mode:
authorUdo Walter2020-05-13 14:04:52 +0200
committerUdo Walter2020-05-13 14:04:52 +0200
commite5a3a1d737e88c89a4ba3fbc8d277745093139b1 (patch)
tree9fac401c4a848eb3a38429f17e6050eaa506dd2e /src/main/resources/controllers
parentFix connecting to a new client after exiting a client. Add logo, favicon and ... (diff)
downloadbwlp-guacamole-ext-e5a3a1d737e88c89a4ba3fbc8d277745093139b1.tar.gz
bwlp-guacamole-ext-e5a3a1d737e88c89a4ba3fbc8d277745093139b1.tar.xz
bwlp-guacamole-ext-e5a3a1d737e88c89a4ba3fbc8d277745093139b1.zip
Add some debug logs. Rename the 'virtual' locations to groups.
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() {