NIFI-3291:
- Ensuring slider step is non negative.

This closes #1486


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/74ecc20f
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/74ecc20f
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/74ecc20f

Branch: refs/heads/master
Commit: 74ecc20f00fe140e89d42fcc47b33000bb818c80
Parents: bc7b17a
Author: Matt Gilman <[email protected]>
Authored: Wed Feb 8 16:21:36 2017 -0500
Committer: Scott Aslan <[email protected]>
Committed: Thu Feb 9 09:42:36 2017 -0500

----------------------------------------------------------------------
 .../src/main/webapp/js/nf/provenance/nf-provenance-lineage.js      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/74ecc20f/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js
index 0b4ad95..62e36c6 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-lineage.js
@@ -507,7 +507,7 @@
 
                 // update the slider min/max/step values
                 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
                 $('#event-time').text(formatEventTime(maxMillis, 
provenanceTableCtrl));

Reply via email to