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,9 +37,11 @@ Dialog.include({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
close: function() { |
|
|
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); |
|
|
return this._super.apply(this, arguments); |
|
|
}, |
|
|
}, |
|
|