diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-09-02 10:02:19 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-09-02 10:27:41 +0200 |
| commit | 2559b2cf4fc8312bda4f2ca68951ae3103b1d049 (patch) | |
| tree | 48c02bfae46f7b0c24089a43dc0022895f21cbe9 /addons/web/static/src | |
| parent | 7b93e1dc7b4a370c312b64afda7a6045bdb81f38 (diff) | |
[FIX] web: statusbar click
When the statusbar is clicked, a `debounce` function prevents a
doucle-click, and therefore making several `write` calls. On some status
bars, clicking doesn't work anymore.
The reason is because, in some mysterious cases, the event is propagated
to the parent. The `currentTarget` is not the `li` element, but the
parent `ul`. By setting the `immediate` argument to `true` (execute the
first function instead of the last), this solves the issue.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 86697f44903..1555caf454e 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -6178,7 +6178,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({ }); } } - }, 300), + }, 300, true), }); instance.web.form.FieldMonetary = instance.web.form.FieldFloat.extend({ |
