Selaa lähdekoodia

Set background color only if it exists.

Thanks to xet7 !
Lauri Ojansivu 1 vuosi sitten
vanhempi
sitoutus
45d33fa2e4
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      client/lib/utils.js

+ 2 - 2
client/lib/utils.js

@@ -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 {
-      $(".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
   /** returns the current board id