summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2019-06-24 08:14:33 +0000
committerJulien Mougenot <jum@odoo.com>2019-08-16 09:03:49 +0000
commitb416c15a77ce9f2056e2934b91a937cea14210c3 (patch)
tree8ad96fa55282ca5bb0ea3ffc29f1e03adb4e79c6 /doc/reference/javascript_reference.rst
parentbec84c10a1f683f9cc37e76d7fb354ed066508f4 (diff)
[IMP] web: dialog triggers custom callback on close
Added an option in the Dialog class to give it a function to run when it's closed by other ways than by its buttons. Its default value is the "cancel" callback if given, or none. Before this commit, there was no way to add any callback to run when the modal wasn't closed by a button. Now, when exiting the modal by other means (e.g.: "Escape" key), it will run a given callback.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions