mirror of https://github.com/OCA/web.git
[11.0][FIX] web_dialog_size: Draggable Dialog
parent
c901afffba
commit
106fdd7dfb
|
@ -26,15 +26,15 @@ Dialog.include({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
open: function() {
|
opened: function(handler) {
|
||||||
this._super.apply(this, arguments);
|
return this._super.apply(this, arguments).then(function(){
|
||||||
if (this.$modal) {
|
if (this.$modal) {
|
||||||
this.$modal.draggable({
|
this.$modal.draggable({
|
||||||
handle: '.modal-header',
|
handle: '.modal-header',
|
||||||
helper: false
|
helper: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return this;
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
close: function() {
|
close: function() {
|
||||||
|
|
Loading…
Reference in New Issue