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() {
|
close: function() {
|
||||||
var draggable = this.$modal.draggable( "instance" );
|
if (this.$modal) {
|
||||||
if (draggable) {
|
var draggable = this.$modal.draggable("instance");
|
||||||
this.$modal.draggable("destroy");
|
if (draggable) {
|
||||||
|
this.$modal.draggable("destroy");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this._super.apply(this, arguments);
|
return this._super.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue