mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
Ticket #307: Added missing 'value' parameter to the boolean checkbox parameters from the source xml through to the webapp.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Context antiJARLocking="true" path=""/>
|
||||
<Context antiJARLocking="true" path="/guacamole"/>
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user