From e7a1433a3087a1b9fb9c9f06cb196a5d16145323 Mon Sep 17 00:00:00 2001 From: MTRNord Date: Thu, 13 Sep 2018 16:15:11 +0200 Subject: [PATCH] fix loading of the item color from saved state --- www/kanban/jkanban.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/kanban/jkanban.js b/www/kanban/jkanban.js index e70947697..0c89abe2e 100644 --- a/www/kanban/jkanban.js +++ b/www/kanban/jkanban.js @@ -378,6 +378,10 @@ nodeItemText.dropfn = itemKanban.drop; //add click handler of item __onclickHandler(nodeItemText); + if (itemKanban.color !== '' && itemKanban.color !== undefined) { + jscolorL = new jscolor(nodeItem,{valueElement:undefined}); + jscolorL.fromString(itemKanban.color); + } __onColorClickHandler(nodeItem, "item"); contentBoard.appendChild(nodeItem);