mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-04-02 13:15:03 -04:00
Can't use a decimal step. Has to be any because browsers suck.
This commit is contained in:
@@ -202,7 +202,7 @@ function toPercent(field, maxValue) {
|
||||
field.value = 100;
|
||||
}
|
||||
}
|
||||
field.setAttribute('step', 0.01);
|
||||
field.setAttribute('step', 'any');
|
||||
field.setAttribute('max', 100);
|
||||
}
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ if ( count($other_zones) ) {
|
||||
array('data-on-change'=>'applyZoneUnits', 'id'=>'newZone[Units]')
|
||||
);
|
||||
# Used later for number inputs
|
||||
$step = $newZone['Units'] == 'Percent' ? ' step="0.01" max="100"' : '';
|
||||
$step = $newZone['Units'] == 'Percent' ? ' step="any" max="100"' : '';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user