forked from Techsystech/web
[FIX] #921 Fixed issue when discard a modal with draggable element
parent
6feb307ccb
commit
6087242852
|
@ -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…
Reference in New Issue