shx-3d-render
parent
597705687c
commit
1db9ee0b74
|
@ -170,9 +170,9 @@
|
|||
<div id="${inputID}" class="shx-ifc-colorselect">
|
||||
`;
|
||||
|
||||
for(let i = 0; i < options.length; i++) {
|
||||
for(let color in options) {
|
||||
html += `
|
||||
<input type="radio" id="${inputID}-${i}" form="product-form-${section_id}" name="properties[${inputName}]" value="HEX_${options[i]}" ${inputVal === options[i] ? 'checked' : ''}>
|
||||
<input type="radio" id="${inputID}-${i}" form="product-form-${section_id}" name="properties[${inputName}]" value="${options[color].name}" ${inputVal === color ? 'checked' : ''}>
|
||||
<label for="${inputID}-${i}" style="background-color: ${options[i]};"></label>
|
||||
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue