Browse Source

[FIX] #921 Fixed issue when discard a modal with draggable element

pull/1110/head
Quentin THEURET 6 years ago
committed by Pedro M. Baeza
parent
commit
c6491f42dd
  1. 2
      web_dialog_size/__manifest__.py
  2. 8
      web_dialog_size/static/src/js/web_dialog_size.js

2
web_dialog_size/__manifest__.py

@ -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',

8
web_dialog_size/static/src/js/web_dialog_size.js

@ -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…
Cancel
Save