Skip to content

Commit

Permalink
Don't select rows if text is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mskvortsov committed Apr 17, 2024
1 parent 053cd0c commit 5e9d189
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions meshmon.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ body {

#nodes-seen {
font-family: var(--font-family-verbatim);
font-weight: normal;
background-color: var(--nodes-seen-bg-color);
margin-left: 30px;
width: 32px;
Expand Down
6 changes: 6 additions & 0 deletions meshmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,16 @@ function render(se) {
cell.appendChild(decoded);

headerRow.onclick = () => {
if (document.getSelection() != "") {
return;
}
headerRow.classList.toggle('selected');
headerRow.nextElementSibling.classList.toggle('selected');
};
decodedRow.onclick = () => {
if (document.getSelection() != "") {
return;
}
decodedRow.previousElementSibling.classList.toggle('selected');
decodedRow.classList.toggle('selected');
};
Expand Down

0 comments on commit 5e9d189

Please sign in to comment.