[Spice-devel] [spice-xpi 3/4] Add Usb enable/disable to the test page

Christophe Fergeau cfergeau at redhat.com
Tue Apr 3 06:07:04 PDT 2012


---
 data/test.html |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/data/test.html b/data/test.html
index ff7743b..3384a56 100644
--- a/data/test.html
+++ b/data/test.html
@@ -112,6 +112,7 @@ function setConnectVars()
 	if(document.getElementById("NoTaskMgrExecutionToggled").checked == true) { embed.NoTaskMgrExecution = document.getElementById("NoTaskMgrExecution").checked; } else { embed.NoTaskMgrExecution = ""; }
 	if(document.getElementById("SendCtrlAltdeleteToggled").checked == true) { embed.SendCtrlAltdelete = document.getElementById("SendCtrlAltdelete").checked; } else { embed.SendCtrlAltDelete = ""; }
 	if(document.getElementById("UsbListenPortToggled").checked == true) { embed.UsbListenPort = parseInt( document.getElementById("UsbListenPort").value ); } else { embed.UsbListenPort = ""; }
+	if(document.getElementById("UsbEnableToggled").checked == true) { embed.Usb = document.getElementById("UsbEnable").checked; } else { embed.Usb = ""; }
 	if(document.getElementById("UsbAutoShareToggled").checked == true) { embed.UsbAutoShare = document.getElementById("UsbAutoShare").checked; } else { embed.UsbAutoShare = ""; }
 	if(document.getElementById("SmartcardToggled").checked == true) { embed.Smartcard = document.getElementById("Smartcard").checked; } else { embed.Smartcard = ""; }
 	if(document.getElementById("ColorDepthToggled").checked == true) { embed.ColorDepth = document.getElementById("ColorDepth").value; } else { embed.ColorDepth = ""; }
@@ -234,6 +235,10 @@ function toggle(checkboxID)
 <td> <input id="UsbListenPort" type="text" size="30" value="32023" disabled /></td>
 </tr>
 <tr>
+<td><input type="checkbox" id="UsbEnableToggled" onclick="toggle('UsbEnableToggled', 'UsbEnable')" /></td>
+<td>Enable USB Redirection:</td>
+<td> <input id="UsbEnable" type="checkbox" disabled /></td>
+</tr>
 <td><input type="checkbox" id="UsbAutoShareToggled" onclick="toggle('UsbAutoShareToggled', 'UsbAutoShare')" /></td>
 <td>USB Auto Share:</td>
 <td> <input id="UsbAutoShare" type="checkbox" disabled /></td>
-- 
1.7.9.3



More information about the Spice-devel mailing list