changeset 8f530d86aaec in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=8f530d86aaec
description:
Do not propagate click on selection cell
but select the checkbox instead.
issue8209
review287071002
diffstat:
src/view/tree.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 38bd2d0827f2 -r 8f530d86aaec src/view/tree.js
--- a/src/view/tree.js Thu Mar 28 19:22:49 2019 +0100
+++ b/src/view/tree.js Thu Mar 28 19:31:18 2019 +0100
@@ -878,7 +878,10 @@
this.tree.el.uniqueId();
td = jQuery('<td/>', {
'class': 'selection-state',
- });
+ }).click(function(event_) {
+ event_.stopPropagation();
+ this.selection.click();
+ }.bind(this));
this.el.append(td);
this.selection = jQuery('<input/>', {
'type': 'checkbox',