fix loading of the item color from saved state

pull/1/head
MTRNord 6 years ago
parent 2ef397a483
commit e7a1433a30
No known key found for this signature in database
GPG Key ID: E5B89311FAB91B9F

@ -378,6 +378,10 @@
nodeItemText.dropfn = itemKanban.drop; nodeItemText.dropfn = itemKanban.drop;
//add click handler of item //add click handler of item
__onclickHandler(nodeItemText); __onclickHandler(nodeItemText);
if (itemKanban.color !== '' && itemKanban.color !== undefined) {
jscolorL = new jscolor(nodeItem,{valueElement:undefined});
jscolorL.fromString(itemKanban.color);
}
__onColorClickHandler(nodeItem, "item"); __onColorClickHandler(nodeItem, "item");
contentBoard.appendChild(nodeItem); contentBoard.appendChild(nodeItem);

Loading…
Cancel
Save