forked from MapComplete/MapComplete
Add mapillary and other nearby images preview
This commit is contained in:
parent
fc0afbcc18
commit
44223d0f1c
12 changed files with 418 additions and 130 deletions
|
|
@ -19,7 +19,8 @@ export class CheckBox extends InputElementMap<number[], boolean> {
|
|||
}
|
||||
|
||||
/**
|
||||
* Supports multi-input
|
||||
* A list of individual checkboxes
|
||||
* The value will contain the indexes of the selected checkboxes
|
||||
*/
|
||||
export default class CheckBoxes extends InputElement<number[]> {
|
||||
private static _nextId = 0;
|
||||
|
|
@ -86,9 +87,7 @@ export default class CheckBoxes extends InputElement<number[]> {
|
|||
formTag.appendChild(wrapper);
|
||||
|
||||
value.addCallbackAndRunD((selectedValues) => {
|
||||
if (selectedValues.indexOf(i) >= 0) {
|
||||
input.checked = true;
|
||||
}
|
||||
input.checked = selectedValues.indexOf(i) >= 0;
|
||||
|
||||
if (input.checked) {
|
||||
wrapper.classList.remove("border-gray-400");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue