Skip to content

Commit

Permalink
Fix: Action column is not sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Mar 23, 2024
1 parent 17ad86b commit f746f87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion htdocs/js/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ function dragAndDropTable(tableId) {
* @returns {boolean} true if clickable, else false
*/
function isColSortable(tableName, colName) {
if (colName === 'Action') {
return false;
}
if (tableName === 'QueueCurrent' &&
features.featAdvqueue === false)
{
Expand Down Expand Up @@ -814,7 +817,9 @@ function tableClickHandler(event) {
}
//table header
if (event.target.nodeName === 'TH') {
if (features.featAdvqueue === false) {
if (app.id === 'QueueCurrent' &&
features.featAdvqueue === false)
{
return null;
}
const colName = event.target.getAttribute('data-col');
Expand Down

0 comments on commit f746f87

Please sign in to comment.