changeset bc240befa228 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=bc240befa228
description:
        Force to always redraw the row of the clicked button

        The display may not redraw the row and so reset the state of button if 
the
        record has not be modified like with an action button.

        issue10985
        review367871002
        (grafted from 13a9fdc87148422cad42b226b0cb1245c4ee0e90)
diffstat:

 src/view/tree.js |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r e19a15305069 -r bc240befa228 src/view/tree.js
--- a/src/view/tree.js  Thu Nov 25 09:48:08 2021 +0100
+++ b/src/view/tree.js  Sun Nov 28 13:50:40 2021 +0100
@@ -2626,6 +2626,12 @@
                 return;
             }
             button.el.prop('disabled', true);  // state will be reset at 
display
+            var row = this.view.rows.find(function(row) {
+                return row.record == record;
+            });
+            if (row) {
+                row._drawed_record = null;  // force redraw the row
+            }
             this.view.screen.button(this.attributes);
         }
     });

Reply via email to