Skip to content

Commit

Permalink
select gridrow on text rtl click
Browse files Browse the repository at this point in the history
  • Loading branch information
emcodemall committed Dec 21, 2024
1 parent ec87fcb commit 163cf0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webinterface/components/jobviewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
direction:rtl;
overflow:hidden;
text-overflow: ellipsis;
user-select: text;
}

/*three dots on text overflow*/
Expand Down Expand Up @@ -337,9 +338,10 @@

/* global click handler */
document.addEventListener("click", function(evnt){
//unselect selected grid rows if not clicked within a grid
if (Array.from(evnt.target.classList).indexOf("dhx_grid-cell__content" ) != -1)
//unselect selected grid rows if not clicked within a grid (or on some text in grid)
if (Array.from(evnt.target.classList).join("").match(/dhx_grid-cell__content|celltext_rtl/ ))
return true;
console.log("Clearing grid selection because of click outside")

if(m_historyGrid && m_activeGrid){
//disable selection in the grids
Expand Down

0 comments on commit 163cf0b

Please sign in to comment.