Browse Source
[11.0][FIX] web_dialog_size: Draggable Dialog
pull/984/merge
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
9 additions and
9 deletions
-
web_dialog_size/static/src/js/web_dialog_size.js
|
|
@ -26,15 +26,15 @@ Dialog.include({ |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
open: function() { |
|
|
|
this._super.apply(this, arguments); |
|
|
|
opened: function(handler) { |
|
|
|
return this._super.apply(this, arguments).then(function(){ |
|
|
|
if (this.$modal) { |
|
|
|
this.$modal.draggable({ |
|
|
|
handle: '.modal-header', |
|
|
|
helper: false |
|
|
|
}); |
|
|
|
} |
|
|
|
return this; |
|
|
|
}.bind(this)); |
|
|
|
}, |
|
|
|
|
|
|
|
close: function() { |
|
|
|