Browse Source

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

pull/927/head
Quentin THEURET 7 years ago
parent
commit
6087242852
  1. 8
      web_dialog_size/static/src/js/web_dialog_size.js

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

@ -36,9 +36,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