mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-197: Add comments to the AngularJS files.
This commit is contained in:
committed by
Nick Couchman
parent
731c622e8f
commit
2175c21ff5
@@ -24,7 +24,7 @@ angular.module('guacRadius').config(['formServiceProvider',
|
|||||||
function guacRadiusConfig(formServiceProvider) {
|
function guacRadiusConfig(formServiceProvider) {
|
||||||
console.log("In guacRadiusConfig() method.");
|
console.log("In guacRadiusConfig() method.");
|
||||||
|
|
||||||
// Define field for the signed response 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', {
|
||||||
module : 'guacRadius',
|
module : 'guacRadius',
|
||||||
controller : 'guacRadiusController',
|
controller : 'guacRadiusController',
|
||||||
|
@@ -26,10 +26,17 @@ angular.module('guacRadius').controller('guacRadiusController', ['$scope', '$ele
|
|||||||
function guacRadiusController($scope, $element) {
|
function guacRadiusController($scope, $element) {
|
||||||
console.log("In guacRadiusController() method.");
|
console.log("In guacRadiusController() method.");
|
||||||
|
|
||||||
|
// 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'));
|
||||||
|
|
||||||
|
// Find the hidden input to put the state in
|
||||||
var radiusState = $element.find(document.querySelector('#radius-state'));
|
var radiusState = $element.find(document.querySelector('#radius-state'));
|
||||||
|
|
||||||
|
// Populate the reply message field
|
||||||
console.log("RADIUS Reply Message: " + $scope.field.replyMsg);
|
console.log("RADIUS Reply Message: " + $scope.field.replyMsg);
|
||||||
radiusChellenge.html($scope.field.replyMsg);
|
radiusChellenge.html($scope.field.replyMsg);
|
||||||
|
|
||||||
|
// Populate the input area for the connection state
|
||||||
console.log("RADIUS State: " + scope.field.radiusState);
|
console.log("RADIUS State: " + scope.field.radiusState);
|
||||||
radiusState.value = $scope.field.radiusState;
|
radiusState.value = $scope.field.radiusState;
|
||||||
|
|
||||||
|
@@ -27,5 +27,5 @@ angular.module('guacRadius', [
|
|||||||
'form'
|
'form'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Ensure the guacDuo module is loaded along with the rest of the app
|
// Ensure the guacRadius module is loaded along with the rest of the app
|
||||||
angular.module('index').requires.push('guacRadius');
|
angular.module('index').requires.push('guacRadius');
|
||||||
|
Reference in New Issue
Block a user