Browse Source

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

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

2
web_dialog_size/__manifest__.py

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

4
web_dialog_size/static/src/js/web_dialog_size.js

@ -37,10 +37,12 @@ Dialog.include({
}, },
close: function() { close: function() {
var draggable = this.$modal.draggable( "instance" );
if (this.$modal) {
var draggable = this.$modal.draggable("instance");
if (draggable) { if (draggable) {
this.$modal.draggable("destroy"); this.$modal.draggable("destroy");
} }
}
return this._super.apply(this, arguments); return this._super.apply(this, arguments);
}, },

Loading…
Cancel
Save