瀏覽代碼

Set background color only if it exists.

Thanks to xet7 !
Lauri Ojansivu 1 年之前
父節點
當前提交
45d33fa2e4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/lib/utils.js

+ 2 - 2
client/lib/utils.js

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