Rework stay-period tooltip to reuse core tooltip pattern

Remove the hand-rolled clone/mouseenter tooltip skeleton and switch to
jQuery UI's tooltip() widget with the shared core tooltip classes, same
pattern already used by connected-rooms.tpl.
This commit is contained in:
aradhana kumari
2026-07-24 16:35:32 +05:30
parent 28c1e74579
commit 4cfe970dac
3 changed files with 53 additions and 108 deletions

View File

@@ -397,8 +397,11 @@ class AdminOrdersControllerCore extends AdminController
$uniqueStayPeriods = count($stayPeriods);
if ($uniqueStayPeriods > 1) {
$stayPeriodHtml .= ' <span class="qlo-stay-period-badge qlo-stay-period-tip" data-stay-tip="'
.htmlspecialchars(json_encode($stayPeriods)).'">+'
$stayPeriodHtml .= ' <span class="badge qlo-stay-period-badge"'
.' data-stay-tip="'.htmlspecialchars(json_encode($stayPeriods)).'"'
.' data-label-title="'.htmlspecialchars($this->l('Stay Periods')).'"'
.' data-label-duration="'.htmlspecialchars($this->l('Duration')).'"'
.' data-label-rooms="'.htmlspecialchars($this->l('Rooms')).'">+'
.($uniqueStayPeriods - 1).'</span>';
}
return $stayPeriodHtml;
@@ -1513,8 +1516,6 @@ class AdminOrdersControllerCore extends AdminController
$this->_new_list_header_design = true;
$this->content .= $this->context->smarty->fetch('controllers/orders/_stay_periods_tooltip.tpl');
return parent::renderList();
}