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. 8
      web_dialog_size/static/src/js/web_dialog_size.js

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