소스 검색

Set background color only if it exists. Part 2.

Thanks to xet7 !
Lauri Ojansivu 2 년 전
부모
커밋
c6cad13f1e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      client/lib/utils.js

+ 2 - 2
client/lib/utils.js

@@ -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"});
       $(".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});
     }
   },