Browse Source

Merge pull request #927 from qtheuret/web_dialog_size_issue_921

[FIX] #921 Fixed issue when discard a modal with draggable element
pull/933/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
742c846ccb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_dialog_size/static/src/js/web_dialog_size.js

2
web_dialog_size/static/src/js/web_dialog_size.js

@ -37,10 +37,12 @@ Dialog.include({
}, },
close: function() { close: function() {
if (this.$modal) {
var draggable = this.$modal.draggable("instance"); 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