Skip to content

Commit

Permalink
Stop bubbling of the read flag trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
fkantelberg committed Jan 11, 2024
1 parent 26d20b0 commit 217898a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mail_devel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .service import Service

VERSION = "0.8.1"
VERSION = "0.8.2"
1 change: 1 addition & 0 deletions src/mail_devel/resources/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ button, .btn {
#mailboxes option {padding: 5px}

#mailbox {
overflow-x: auto;
overflow-y: scroll;
}
#mailbox table {
Expand Down
4 changes: 3 additions & 1 deletion src/mail_devel/resources/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,13 @@ class MailClient {

row.querySelector(".read input").addEventListener("click", (ev) => {
ev.preventDefault();
ev.stopPropagation();
self._mail_row_click(ev.target, "read");
});

row.addEventListener("click", (ev) => {
ev.preventDefault();
ev.stopPropagation();
self._mail_row_click(ev.target, "swap");
});

Expand Down Expand Up @@ -211,7 +213,7 @@ class MailClient {
break;

case "read":
await self.set_flag("seen", element.checked ? "DELETE" : "PUT", row.uid);
await self.set_flag("seen", element.checked ? "PUT" : "DELETE", row.uid);
element.checked = !element.checked;
break;
}
Expand Down

0 comments on commit 217898a

Please sign in to comment.