summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/field_utils.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-03-01 15:36:58 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit0a3012cd7981df839f8ff17766e7f08b3269d3bf (patch)
treebe3767e4f1898a00efd71d2583acb37c9a20108b /addons/web/static/src/js/fields/field_utils.js
parent6cf02734277aa6b30808612dd129c351e419b742 (diff)
[FIX] web: ace editor field was not properly saving changes
Two changes were ignored: - The first change - The last done undo This commit refactores the field so that: - The ace setValue function is called only if the value really changed (prevent losing focus / undo stack / retrigger "change" event / ...) - As the ace setValue triggers multiple "change" events, only consider the last one - Same rendering function for edit/readonly modes - Only listen to "change" events in edit mode
Diffstat (limited to 'addons/web/static/src/js/fields/field_utils.js')
0 files changed, 0 insertions, 0 deletions