diff --git a/web/skins/classic/views/event.php b/web/skins/classic/views/event.php index e3446947a..cb23429f9 100644 --- a/web/skins/classic/views/event.php +++ b/web/skins/classic/views/event.php @@ -215,7 +215,7 @@ if ( ($codec == 'MP4' || $codec == 'auto' ) && $Event->DefaultVideo() ) { array_map(function($r){return $r/100;}, array_filter( array_keys($rates), - function($r){return $r >= 0 ? true : false;}, + function($r){return $r >= 0 ? true : false;} ))) ?>], "plugins": { "zoomrotate": { "zoom": ""}}}' > diff --git a/web/skins/classic/views/js/zone.js b/web/skins/classic/views/js/zone.js index 8aff951fe..1b4bf725e 100644 --- a/web/skins/classic/views/js/zone.js +++ b/web/skins/classic/views/js/zone.js @@ -182,7 +182,9 @@ function applyPreset() { function toPixels(field, maxValue) { if ( field.value != '' ) { field.value = Math.round((field.value*maxValue)/100); - if ( field.value > maxValue ) field.value = maxValue; + if ( field.value > maxValue ) { + field.value = maxValue; + } } field.setAttribute('step', 1); field.setAttribute('max', maxValue);