Ticket #307: Added missing 'value' parameter to the boolean checkbox parameters from the source xml through to the webapp.

This commit is contained in:
James Muehlner
2013-04-11 22:57:02 -07:00
parent 6116840369
commit 414426b779
7 changed files with 42 additions and 10 deletions

View File

@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path=""/>
<Context antiJARLocking="true" path="/guacamole"/>

View File

@@ -767,10 +767,11 @@ GuacamoleService.Protocol = function(name, title, parameters) {
/**
* A parameter belonging to a protocol. Each parameter has a name which
* identifies the parameter to the protocol, a human-readable title, and a type
* which dictates its presentation to the user.
* identifies the parameter to the protocol, a human-readable title,
* a value for boolean parameters, and a type which dictates
* its presentation to the user.
*/
GuacamoleService.Protocol.Parameter = function(name, title, type, options) {
GuacamoleService.Protocol.Parameter = function(name, title, type, value, options) {
/**
* The name of this parameter.
@@ -787,6 +788,11 @@ GuacamoleService.Protocol.Parameter = function(name, title, type, options) {
*/
this.type = type;
/**
* The value of this parameter.
*/
this.value = value;
/**
* All available options, if applicable, in desired order of presentation.
* @type GuacamoleService.Protocol.Parameter.Option[]
@@ -924,6 +930,7 @@ GuacamoleService.Protocols = {
// Boolean parameter
case "boolean":
parameter.type = GuacamoleService.Protocol.Parameter.BOOLEAN;
parameter.value = paramElement.getAttribute("value");
break;
// Enumerated parameter