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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user