Use the <label> tag instead of hand made stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30320 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4ab94faa39
commit
91054f1d38
|
@ -26,7 +26,7 @@ define("VNCJAR", "VncViewer.jar");
|
||||||
define("VNCCLASS", "VncViewer.class");
|
define("VNCCLASS", "VncViewer.class");
|
||||||
|
|
||||||
// maximum count of qemu instances.
|
// maximum count of qemu instances.
|
||||||
define("MAX_QEMUS", 8);
|
define("MAX_QEMUS", 2);
|
||||||
|
|
||||||
// size of the java applet, must match the default resolution of the image.
|
// size of the java applet, must match the default resolution of the image.
|
||||||
//define("APPLET_WIDTH", "800");
|
//define("APPLET_WIDTH", "800");
|
||||||
|
@ -410,15 +410,10 @@ function output_options_form()
|
||||||
echo "<input type=\"checkbox\" name=\"sound\" id=\"sound_cb\" ";
|
echo "<input type=\"checkbox\" name=\"sound\" id=\"sound_cb\" ";
|
||||||
echo "value=\"1\" ";
|
echo "value=\"1\" ";
|
||||||
if ($enable_sound) {
|
if ($enable_sound) {
|
||||||
echo "checked=\"checked\" ";
|
echo "checked=\"checked\" /";
|
||||||
echo "/><a onclick=\"o=window.document.getElementById('";
|
|
||||||
echo "sound_cb'); o.checked = !o.checked;\"";
|
|
||||||
} else
|
} else
|
||||||
echo "disabled=\"disabled\" /";
|
echo "disabled=\"disabled\" /";
|
||||||
echo ">Sound";
|
echo "><label for=\"sound_cb\">Sound</label>";
|
||||||
if ($enable_sound)
|
|
||||||
echo "</a>";
|
|
||||||
//echo "</input>";
|
|
||||||
echo "</td>\n</tr>\n";
|
echo "</td>\n</tr>\n";
|
||||||
|
|
||||||
$enable_serial = 1;
|
$enable_serial = 1;
|
||||||
|
@ -433,14 +428,8 @@ function output_options_form()
|
||||||
echo "value=\"1\" "/*"disabled "*/;
|
echo "value=\"1\" "/*"disabled "*/;
|
||||||
if ($enable_serial) {
|
if ($enable_serial) {
|
||||||
//echo "checked ";
|
//echo "checked ";
|
||||||
echo "/><a onclick=\"o=window.document.getElementById('";
|
}
|
||||||
echo "serial_cb'); o.checked = !o.checked;\"";
|
echo "/><label for=\"serial_cb\">Serial</label>";
|
||||||
} else
|
|
||||||
echo "/";
|
|
||||||
echo ">Serial";
|
|
||||||
if ($enable_serial)
|
|
||||||
echo "</a>";
|
|
||||||
//echo "</input>";
|
|
||||||
echo "</td>\n</tr>\n";
|
echo "</td>\n</tr>\n";
|
||||||
|
|
||||||
if (defined("QEMU_USB_PASSTHROUGH")) {
|
if (defined("QEMU_USB_PASSTHROUGH")) {
|
||||||
|
@ -457,14 +446,8 @@ function output_options_form()
|
||||||
echo "value=\"1\" "/*"disabled "*/;
|
echo "value=\"1\" "/*"disabled "*/;
|
||||||
if ($enable_webcam) {
|
if ($enable_webcam) {
|
||||||
//echo "checked ";
|
//echo "checked ";
|
||||||
echo "/><a onclick=\"o=window.document.getElementById('";
|
}
|
||||||
echo "webcam_cb'); o.checked = !o.checked;\"";
|
echo "/><label for=\"webcam_cb\">Webcam</label>";
|
||||||
} else
|
|
||||||
echo "/";
|
|
||||||
echo ">Webcam";
|
|
||||||
if ($enable_webcam)
|
|
||||||
echo "</a>";
|
|
||||||
//echo "</input>";
|
|
||||||
echo "</td>\n</tr>\n";
|
echo "</td>\n</tr>\n";
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue