projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc59cfc
)
[FIX] web: destroy modal on cross click or escape
author
Denis Ledoux
<dle@odoo.com>
Thu, 9 Oct 2014 14:28:25 +0000
(16:28 +0200)
committer
Denis Ledoux
<dle@odoo.com>
Thu, 9 Oct 2014 14:31:17 +0000
(16:31 +0200)
Instead of just hidding it
Otherwise, when opening a new dialog, it is considered that there is a previous opened dialog, and this can lead to refresh the record which opened the hidden/previous dialog
This is related to rev.
57b48602fb7afa5d0539e8d0caa8d1e10c3910e5
addons/web/static/src/js/chrome.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/chrome.js
b/addons/web/static/src/js/chrome.js
index
bbf3615
..
08b3cf7
100644
(file)
--- a/
addons/web/static/src/js/chrome.js
+++ b/
addons/web/static/src/js/chrome.js
@@
-172,7
+172,7
@@
instance.web.Dialog = instance.web.Widget.extend({
$dialog_content.openerpClass();
this.$dialog_box.on('hidden.bs.modal', this, function() {
- self.close();
+ self.destroy();
});
this.$dialog_box.modal('show');