From 0094095edee5f7fb0ce0d2ceeb75f5d9540b5554 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 12 Jul 2021 18:32:47 +0200 Subject: [PATCH] set background color of category tag --- views/bootstrap/class.Bootstrap.php | 2 +- views/bootstrap4/class.Bootstrap4.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index ade52821e..195c8fb30 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -3094,7 +3094,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev) if($categories = $document->getCategories()) { $content .= "
"; foreach($categories as $category) - $content .= "".$category->getName()." "; + $content .= "getColor() ? ' style="background-color: '.$category->getColor().' !important;"' : '').">".$category->getName()." "; } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title']; diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 9e3cd83e2..aa82066fa 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -3039,7 +3039,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev) if($categories = $document->getCategories()) { $content .= "
"; foreach($categories as $category) - $content .= "getColor() ? ' style="background-color: #'.$category->getColor().' !important;"' : '').">".$category->getName()." "; + $content .= "getColor() ? ' style="background-color: '.$category->getColor().' !important;"' : '').">".$category->getName()." "; } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title'];