diff --git a/web/skins/classic/views/js/watch.js.php b/web/skins/classic/views/js/watch.js.php index d7b108b6d..36a0417de 100644 --- a/web/skins/classic/views/js/watch.js.php +++ b/web/skins/classic/views/js/watch.js.php @@ -102,7 +102,7 @@ var labels = new Array(); $labels = array(); foreach (dbFetchAll('SELECT * FROM ControlPresets WHERE MonitorId = ?', NULL, array($monitor->Id())) as $row) { $label = $labels[$row['Preset']] = $row['Label']; - echo 'labels['. validInt($index) .'] = '.validJsStr($label).'\''; + echo 'labels['. validInt($index) .'] = \''.validJsStr($label).'\''; } ?> var deleteString = "";