diff --git a/web/skins/classic/includes/control_functions.php b/web/skins/classic/includes/control_functions.php index 51a20c8d6..a05ff5d40 100644 --- a/web/skins/classic/includes/control_functions.php +++ b/web/skins/classic/includes/control_functions.php @@ -21,13 +21,14 @@ function controlFocus($monitor, $cmds) { $control = $monitor->Control(); + $cmd = $control->CanFocusCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
- + - +
CanAutoFocus() ) { @@ -44,13 +45,14 @@ function controlFocus($monitor, $cmds) { function controlZoom($monitor, $cmds) { $control = $monitor->Control(); + $cmd = $control->CanZoomCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
- + - +
CanAutoZoom() ) { @@ -66,13 +68,14 @@ function controlZoom($monitor, $cmds) { function controlIris($monitor, $cmds) { $control = $monitor->Control(); + $cmd = $control->CanIrisCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
- + - +
CanAutoIris() ) { @@ -89,13 +92,14 @@ function controlIris($monitor, $cmds) { function controlWhite($monitor, $cmds) { $control = $monitor->Control(); + $cmd = $control->CanWhiteCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
- + - +
CanAutoWhite() ) {