Pops Bugfix
* Popnamen beim bearbeiten werden nun nicht werden nun nicht mehr mit Vorder- und Rückseite verfälscht. * Wenn ein Rack 1/3 oder 1/4 Zoll hat und der 1te Slot belegt wurde wurde 1/2 Slot beim bearbeiten angezeigt
This commit is contained in:
@@ -107,9 +107,9 @@ for ($i = 1; $i <= $rack_he; $i++) : ?>
|
||||
}
|
||||
|
||||
if ($slots['width'] == "12") $width = "85%";
|
||||
else if ($slots['width'] == "6") $width = "42%";
|
||||
else if ($slots['width'] == "4") $width = "28%";
|
||||
else if ($slots['width'] == "3") $width = "21%";
|
||||
else if ($slots['width'] == "6") $width = "42.5%";
|
||||
else if ($slots['width'] == "4") $width = "28.33%";
|
||||
else if ($slots['width'] == "3") $width = "21.25%";
|
||||
|
||||
|
||||
while ($position < $slots['position']) {
|
||||
@@ -118,8 +118,7 @@ for ($i = 1; $i <= $rack_he; $i++) : ?>
|
||||
$calcwidth += $slots['width'];
|
||||
}
|
||||
|
||||
echo '<td title="' . strip_tags($displayName) . $extText . '" colspan="' . $slots['width'] . '" class="text-center border-top border-bottom border-right ' . $colorclass . '" data-id="' . $slots['moduleid'] . '" data-type="' . $slots['type'] . '" data-name="' . strip_tags($originalName) . '" data-status="' . ($slots['status'] ?? 'productive') . '" data-starthe="' . $module['start_he'] . '" data-ports="' . $slots['ports'] . '" data-plug="' . $slots['plug'] . '" rowspan="' . $modulelenght . '" style="width: ' . $width . '; border-color: #797979 !important;">' . $slots['modulname'] . $extTextspan . '</td>';
|
||||
|
||||
echo '<td title="' . strip_tags($displayName) . $extText . '" colspan="' . $slots['width'] . '" class="text-center border-top border-bottom border-right ' . $colorclass . '" data-id="' . $slots['moduleid'] . '" data-type="' . $slots['type'] . '" data-name="' . strip_tags($originalName) . '" data-status="' . ($slots['status'] ?? 'productive') . '" data-starthe="' . $module['start_he'] . '" data-ports="' . $slots['ports'] . '" data-plug="' . $slots['plug'] . '" data-width="' . $slots['width'] . '" rowspan="' . $modulelenght . '" style="width: ' . $width . '; border-color: #797979 !important;">' . $slots['modulname'] . $extTextspan . '</td>';
|
||||
$position++;
|
||||
$calcwidth += $slots['width'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user