mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
FIX: Histogram module selected value not displayed (#1510)
The histogram module values are "true" and "false". jQuery would coerce them to Boolean true and false instead of String "true" and "false" which would result in empty value being displayed. Resolves #1295
This commit is contained in:
committed by
Jeffrey Warren
parent
c703836198
commit
afc903192c
@@ -349,7 +349,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
|
||||
.data('initValue', step.options[i]);
|
||||
if (inputs[i].type.toLowerCase() === 'select')
|
||||
$step('div[name="' + i + '"] select')
|
||||
.val(step.options[i])
|
||||
.val(String(step.options[i]))
|
||||
.data('initValue', step.options[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = function Channel(options, UI) {
|
||||
const pixelSetter = require('../../util/pixelSetter.js');
|
||||
|
||||
options.gradient = options.gradient || defaults.gradient;
|
||||
options.gradient = JSON.parse(options.gradient);
|
||||
options.gradient = String(JSON.parse(options.gradient));
|
||||
|
||||
progressObj.stop(true);
|
||||
progressObj.overrideFlag = true;
|
||||
|
||||
Reference in New Issue
Block a user