GUACAMOLE-197: Remove debug code from AngularJS files.

This commit is contained in:
Nick Couchman
2017-02-07 15:43:31 -05:00
committed by Nick Couchman
parent 3e994021da
commit 9c13cb9498
4 changed files with 3 additions and 7 deletions

View File

@@ -22,7 +22,6 @@
*/ */
angular.module('guacRadius').config(['formServiceProvider', angular.module('guacRadius').config(['formServiceProvider',
function guacRadiusConfig(formServiceProvider) { function guacRadiusConfig(formServiceProvider) {
console.log("In guacRadiusConfig() method.");
// Define field for the challenge from the RADIUS service // Define field for the challenge from the RADIUS service
formServiceProvider.registerFieldType('GUAC_RADIUS_CHALLENGE_RESPONSE', { formServiceProvider.registerFieldType('GUAC_RADIUS_CHALLENGE_RESPONSE', {
@@ -30,6 +29,8 @@ angular.module('guacRadius').config(['formServiceProvider',
controller : 'radiusResponseController', controller : 'radiusResponseController',
templateUrl : 'app/ext/radius/templates/radiusResponseField.html' templateUrl : 'app/ext/radius/templates/radiusResponseField.html'
}); });
// Define the hidden field for the RADIUS state
formServiceProvider.registerFieldType('GUAC_RADIUS_STATE', { formServiceProvider.registerFieldType('GUAC_RADIUS_STATE', {
module : 'guacRadius', module : 'guacRadius',
controller : 'radiusStateController', controller : 'radiusStateController',

View File

@@ -24,7 +24,6 @@
*/ */
angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$element', angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$element',
function radiusResponseController($scope, $element) { function radiusResponseController($scope, $element) {
console.log("In radiusResponseController() method.");
// Find the area to display the challenge message // Find the area to display the challenge message
var radiusChallenge = $element.find(document.querySelector('#radius-challenge-text')); var radiusChallenge = $element.find(document.querySelector('#radius-challenge-text'));

View File

@@ -24,10 +24,8 @@
*/ */
angular.module('guacRadius').controller('radiusStateController', ['$scope', '$element', angular.module('guacRadius').controller('radiusStateController', ['$scope', '$element',
function radiusStateController($scope, $element) { function radiusStateController($scope, $element) {
console.log("In radiusStateController() method.");
// Populate the input area for the connection state // Populate the hidden field for the connection state
console.log("RADIUS State: " + $scope.field.radiusState);
$scope.model = $scope.field.radiusState; $scope.model = $scope.field.radiusState;
}]); }]);

View File

@@ -17,8 +17,6 @@
* under the License. * under the License.
*/ */
console.log("Loading guac-radius Angular module.");
/** /**
* Module which provides handling for RADIUS challenge-response * Module which provides handling for RADIUS challenge-response
* authentication. * authentication.