luci-base: jsdoc Slider -> RangeSlider and fixes for RangeSlider
authorPaul Donald <[email protected]>
Wed, 30 Jul 2025 22:31:38 +0000 (00:31 +0200)
committerPaul Donald <[email protected]>
Wed, 30 Jul 2025 22:31:38 +0000 (00:31 +0200)
commitb7c08475e76df67fad6937820829ff72f24c41b6
tree397c5e3756d7863ac8d2f99f15c11497c288ef95
parent4d5ac5b3e946e465058632c060a3019b33a5ee3f
luci-base: jsdoc Slider -> RangeSlider and fixes for RangeSlider

The usecalc property suffers from recursive calculation; that is, its
output becomes its input at the next save. It is not known in advance
whether a stored value is one that was calculated or not. So this part
was removed. The getCalculatedValue() function is retained should it be
desirable to get this value.

The 'optional' property was removed since it didn't do anything.
The 'validate' property is now correctly bound.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/ui.js