-
-
-
+
+
+
CanAutoZoom() ) {
?>
-
-
+
+
@@ -70,15 +70,15 @@ function controlIris($monitor, $cmds) {
?>
-
-
-
+
+
+
CanAutoIris() ) {
?>
-
-
+
+
@@ -93,15 +93,15 @@ function controlWhite($monitor, $cmds) {
?>
-
-
-
+
+
+
CanAutoWhite() ) {
?>
-
-
+
+
@@ -122,19 +122,19 @@ function controlPanTilt($monitor, $cmds) {
$hasTilt = $control->CanTilt();
$hasDiag = $hasPan && $hasTilt && $control->CanMoveDiag();
?>
-
-
-
-
+
+
+
+
-
+
-
-
-
-
+
+
+
+
Id() ) ) as $row ) {
+ foreach ( dbFetchAll($sql, NULL, array($monitor->Id())) as $row ) {
$labels[$row['Preset']] = $row['Label'];
}
@@ -162,7 +162,7 @@ function controlPresets($monitor, $cmds) {
NumPresets(); $i++ ) {
?>
-
+
@@ -171,7 +171,7 @@ function controlPresets($monitor, $cmds) {
HasHomePreset() ) {
?>
-
+
CanSetPresets() ) {
@@ -196,22 +196,22 @@ function controlPower($monitor, $cmds) {
CanWake() ) {
?>
-
+
CanSleep() ) {
?>
-
+
CanReset() ) {
?>
-
+
CanReboot() ) {
?>
-
+
diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js
index 83eae3475..0ad3a5536 100644
--- a/web/skins/classic/views/js/watch.js
+++ b/web/skins/classic/views/js/watch.js
@@ -651,8 +651,13 @@ function getControlResponse( respObj, respText ) {
}
}
-function controlCmd( control, event, xtell, ytell ) {
- var locParms = "";
+function controlCmd(button) {
+
+ control = button.getAttribute('value');
+ xtell = button.getAttribute('xtell');
+ ytell = button.getAttribute('ytell');
+
+ var locParms = '';
if ( event && (xtell || ytell) ) {
console.log(event);
var target = event.target;
@@ -668,7 +673,7 @@ function controlCmd( control, event, xtell, ytell ) {
} else if ( xtell == 2 ) {
xge = 2*(50 - xge);
}
- locParms += "&xge="+xge;
+ locParms += '&xge='+xge;
}
if ( ytell ) {
var yge = parseInt( (y*100)/coords.height );
@@ -677,7 +682,7 @@ function controlCmd( control, event, xtell, ytell ) {
} else if ( ytell == 2 ) {
yge = 2*(50 - yge);
}
- locParms += "&yge="+yge;
+ locParms += '&yge='+yge;
}
}
controlReq.send( controlParms+"&control="+control+locParms );