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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
3 deletions
-
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); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|