mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] #921 Fixed issue when discard a modal with draggable element
This commit is contained in:
committed by
Mantux11
parent
3d13362f69
commit
8b9d514241
@@ -15,7 +15,7 @@
|
|||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
'website': "http://acsone.eu",
|
'website': "http://acsone.eu",
|
||||||
'category': 'web',
|
'category': 'web',
|
||||||
'version': '11.0.1.0.1',
|
'version': '11.0.1.0.2',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'depends': [
|
'depends': [
|
||||||
'web',
|
'web',
|
||||||
|
|||||||
@@ -37,9 +37,11 @@ Dialog.include({
|
|||||||
},
|
},
|
||||||
|
|
||||||
close: function() {
|
close: function() {
|
||||||
var draggable = this.$modal.draggable( "instance" );
|
if (this.$modal) {
|
||||||
if (draggable) {
|
var draggable = this.$modal.draggable("instance");
|
||||||
this.$modal.draggable("destroy");
|
if (draggable) {
|
||||||
|
this.$modal.draggable("destroy");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this._super.apply(this, arguments);
|
return this._super.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user