Try to order table columns using:
HTMLHelper::_('grid.sort', 'Text', 's.title', $this->orders['order_Dir'], $this->orders['order'], 'contents.display');
Ordering still works
Ordering does not work
Caused by removing the onclick handler in the sort function:
$html = '<a href="#" onclick="Joomla.tableOrdering('' . $order . '','' . $direction . '','' . $task . ''' . $form . ');return false;"'
. ' class="hasTooltip" title="' . htmlspecialchars(Text::_('JGLOBAL_CLICK_TO_SORT_THIS_COLUMN')) . '" data-bs-placement="top">';
and replaced with:
$html = '<a href="#" class="hasTooltip" title="' . htmlspecialchars(Text::_('JGLOBAL_CLICK_TO_SORT_THIS_COLUMN')) . '"'
. ' data-ordering-order="' . $order . '"'
. ' data-ordering-direction="' . $direction . '"'
. ' data-ordering-task="' . $task . '"'
. ' data-ordering-form="' . (isset($form) ? $form : '') . '"'
. ' data-bs-placement="top">';
Labels |
Added:
No Code Attached Yet
|
I mean in the backend... looks like there is no longer a JS handler to call the Joomla.tableOrdering function
looks like there is no longer a JS handler to call the Joomla.tableOrdering function
That shouldn't be a problem for the backend as there is already JS code to handle that. Does your page uses searchtools?
@joeforjoomla can you check if PR#40192 fixes the issue?
@joeforjoomla can you check if PR#40192 fixes the issue?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40191.
@obuisard yes #40192 fixes the issue. Indeed the problem was the inline handler that was removed.
@dgrammatiko also in the backend there was no JS code to handle that, once removed the inline handler.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-03-26 07:08:21 |
Closed_By | ⇒ | alikon |
Is the table on the front end or the backend?