Better visibility on selected basket

This commit is contained in:
Laurent Destailleur 2022-11-06 23:18:16 +01:00
parent b3fb15652d
commit dee7377714
2 changed files with 13 additions and 4 deletions

View File

@ -554,6 +554,7 @@ div.description_content {
padding: 7px 4px 7px 4px; padding: 7px 4px 7px 4px;
margin: 8px; margin: 8px;
margin-left: 4px; margin-left: 4px;
border-radius: 3px;
} }
.topnav-left a:hover, .topnav .login_block_other a:hover { .topnav-left a:hover, .topnav .login_block_other a:hover {
background-color: #ddd; background-color: #ddd;
@ -580,6 +581,14 @@ div#moreinfo, div#infowarehouse {
padding: 0 8px 0 8px; padding: 0 8px 0 8px;
} }
.basketselected {
font-weight: bold;
/* text-decoration: underline; */
}
.basketnotselected {
opacity: 0.8;
}
.productprice { .productprice {
position: absolute; position: absolute;
top: 5px; top: 5px;

View File

@ -1177,12 +1177,12 @@ $( document ).ready(function() {
echo $obj->rowid; echo $obj->rowid;
echo '\\\'; Refresh();">'; echo '\\\'; Refresh();">';
if ($placeid == $obj->rowid) { if ($placeid == $obj->rowid) {
echo "<b>"; echo '<span class="basketselected">';
} else {
echo '<span class="basketnotselected">';
} }
echo '<span class="fa fa-shopping-cart paddingright"></span>'.dol_print_date($db->jdate($obj->datec), '%H:%M', 'tzuser'); echo '<span class="fa fa-shopping-cart paddingright"></span>'.dol_print_date($db->jdate($obj->datec), '%H:%M', 'tzuser');
if ($placeid == $obj->rowid) { echo '</span>';
echo "</b>";
}
echo '</a>\');'; echo '</a>\');';
} }
echo '$("#shoppingcart").append(\'<a onclick="place=\\\'0-'; echo '$("#shoppingcart").append(\'<a onclick="place=\\\'0-';