mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix checkbox appearance on status/complete/catch/link nodes
This commit is contained in:
parent
5dc1cc54d5
commit
38872049fd
@ -562,7 +562,6 @@
|
|||||||
if (item.checkbox) {
|
if (item.checkbox) {
|
||||||
var selectWrapper = $('<span class="red-ui-treeList-icon"></span>').appendTo(label);
|
var selectWrapper = $('<span class="red-ui-treeList-icon"></span>').appendTo(label);
|
||||||
var cb = $('<input class="red-ui-treeList-checkbox" type="checkbox">').prop('checked',item.selected).appendTo(selectWrapper);
|
var cb = $('<input class="red-ui-treeList-checkbox" type="checkbox">').prop('checked',item.selected).appendTo(selectWrapper);
|
||||||
label.toggleClass("selected",item.selected);
|
|
||||||
cb.on('click', function(e) {
|
cb.on('click', function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
@ -615,10 +614,10 @@
|
|||||||
}
|
}
|
||||||
that.reveal(item);
|
that.reveal(item);
|
||||||
}
|
}
|
||||||
if (item.selected) {
|
|
||||||
that._selected.add(item);
|
|
||||||
}
|
}
|
||||||
label.toggleClass("selected",!!item.selected);
|
label.toggleClass("selected",!!item.selected);
|
||||||
|
if (item.selected) {
|
||||||
|
that._selected.add(item);
|
||||||
}
|
}
|
||||||
if (item.icon) {
|
if (item.icon) {
|
||||||
if (typeof item.icon === "string") {
|
if (typeof item.icon === "string") {
|
||||||
|
@ -89,7 +89,8 @@
|
|||||||
node: n,
|
node: n,
|
||||||
label: label,
|
label: label,
|
||||||
sublabel: sublabel,
|
sublabel: sublabel,
|
||||||
selected: isChecked
|
selected: isChecked,
|
||||||
|
checkbox: true
|
||||||
};
|
};
|
||||||
items.push(nodeItemMap[n.id]);
|
items.push(nodeItemMap[n.id]);
|
||||||
});
|
});
|
||||||
|
@ -104,7 +104,8 @@
|
|||||||
node: n,
|
node: n,
|
||||||
label: label,
|
label: label,
|
||||||
sublabel: sublabel,
|
sublabel: sublabel,
|
||||||
selected: isChecked
|
selected: isChecked,
|
||||||
|
checkbox: true
|
||||||
};
|
};
|
||||||
items.push(nodeItemMap[n.id]);
|
items.push(nodeItemMap[n.id]);
|
||||||
});
|
});
|
||||||
|
@ -92,7 +92,8 @@
|
|||||||
node: n,
|
node: n,
|
||||||
label: label,
|
label: label,
|
||||||
sublabel: sublabel,
|
sublabel: sublabel,
|
||||||
selected: isChecked
|
selected: isChecked,
|
||||||
|
checkbox: true
|
||||||
};
|
};
|
||||||
items.push(nodeItemMap[n.id]);
|
items.push(nodeItemMap[n.id]);
|
||||||
});
|
});
|
||||||
|
@ -83,7 +83,8 @@
|
|||||||
id: n.id,
|
id: n.id,
|
||||||
node: n,
|
node: n,
|
||||||
label: n.name||n.id,
|
label: n.name||n.id,
|
||||||
selected: isChecked
|
selected: isChecked,
|
||||||
|
checkbox: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user