Set background color only if it exists. Part 2.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2023-06-29 00:22:25 +03:00
parent a8d1210655
commit c6cad13f1e

View file

@ -10,10 +10,10 @@ Utils = {
} }
} }
*/ */
if (currentBoard.backgroundImageURL) { if (currentBoard.backgroundImageURL !== undefined) {
$(".board-wrapper,.board-wrapper .board-canvas").css({"background":"url(" + currentBoard.backgroundImageURL + ")","background-size":"cover"}); $(".board-wrapper,.board-wrapper .board-canvas").css({"background":"url(" + currentBoard.backgroundImageURL + ")","background-size":"cover"});
$(".swimlane,.swimlane .list,.swimlane .list .list-body,.swimlane .list:first-child .list-body").css({"background-color":"transparent"}); $(".swimlane,.swimlane .list,.swimlane .list .list-body,.swimlane .list:first-child .list-body").css({"background-color":"transparent"});
} else if (currentBoard.background-color) { } else if (currentBoard.background-color !== undefined) {
$(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color}); $(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color});
} }
}, },