mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
GUAC-1176: Remove all human-readable title properties from the REST form objects.
This commit is contained in:
@@ -29,12 +29,12 @@ angular.module('form').controller('checkboxFieldController', ['$scope',
|
||||
|
||||
// Update typed value when model is changed
|
||||
$scope.$watch('model', function modelChanged(model) {
|
||||
$scope.typedValue = (model === $scope.field.options[0].value);
|
||||
$scope.typedValue = (model === $scope.field.options[0]);
|
||||
});
|
||||
|
||||
// Update string value in model when typed value is changed
|
||||
$scope.$watch('typedValue', function typedValueChanged(typedValue) {
|
||||
$scope.model = (typedValue ? $scope.field.options[0].value : '');
|
||||
$scope.model = (typedValue ? $scope.field.options[0] : '');
|
||||
});
|
||||
|
||||
}]);
|
||||
|
Reference in New Issue
Block a user