NIFI-3291:

- Ensuring slider step is non negative.

This closes #1486
This commit is contained in:
Matt Gilman 2017-02-08 16:21:36 -05:00 committed by Scott Aslan
parent bc7b17a64c
commit 74ecc20f00
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@
// update the slider min/max/step values // update the slider min/max/step values
var step = (maxMillis - minMillis) / config.sliderTickCount; var step = (maxMillis - minMillis) / config.sliderTickCount;
slider.slider('option', 'min', minMillis).slider('option', 'max', maxMillis).slider('option', 'step', step).slider('value', maxMillis); slider.slider('option', 'min', minMillis).slider('option', 'max', maxMillis).slider('option', 'step', step > 0 ? step : 1).slider('value', maxMillis);
// populate the event timeline // populate the event timeline
$('#event-time').text(formatEventTime(maxMillis, provenanceTableCtrl)); $('#event-time').text(formatEventTime(maxMillis, provenanceTableCtrl));