mirror of https://github.com/OCA/web.git
[FIX] #921 Fixed issue when discard a modal with draggable element
parent
aaaadc17c5
commit
41f845595e
|
@ -15,7 +15,7 @@
|
|||
"Odoo Community Association (OCA)",
|
||||
'website': "http://acsone.eu",
|
||||
'category': 'web',
|
||||
'version': '11.0.1.0.1',
|
||||
'version': '11.0.1.0.2',
|
||||
'license': 'AGPL-3',
|
||||
'depends': [
|
||||
'web',
|
||||
|
|
|
@ -37,9 +37,11 @@ Dialog.include({
|
|||
},
|
||||
|
||||
close: function() {
|
||||
var draggable = this.$modal.draggable( "instance" );
|
||||
if (draggable) {
|
||||
this.$modal.draggable("destroy");
|
||||
if (this.$modal) {
|
||||
var draggable = this.$modal.draggable("instance");
|
||||
if (draggable) {
|
||||
this.$modal.draggable("destroy");
|
||||
}
|
||||
}
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue