Set background color only if it exists.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2023-06-29 00:03:00 +03:00
parent 81ceb1ca0f
commit 45d33fa2e4

View file

@ -13,8 +13,8 @@ Utils = {
if (currentBoard.backgroundImageURL) { if (currentBoard.backgroundImageURL) {
$(".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 { } else if (currentBoard.background-color) {
$(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color}); $(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color});
} }
}, },
/** returns the current board id /** returns the current board id