Browse Source

[11.0][FIX] web_dialog_size: Draggable Dialog

pull/1110/head
QS5ELkMu 6 years ago
committed by Pedro M. Baeza
parent
commit
523d793b7d
  1. 18
      web_dialog_size/static/src/js/web_dialog_size.js

18
web_dialog_size/static/src/js/web_dialog_size.js

@ -26,15 +26,15 @@ Dialog.include({
});
},
open: function() {
this._super.apply(this, arguments);
if (this.$modal) {
this.$modal.draggable({
handle: '.modal-header',
helper: false
});
}
return this;
opened: function(handler) {
return this._super.apply(this, arguments).then(function(){
if (this.$modal) {
this.$modal.draggable({
handle: '.modal-header',
helper: false
});
}
}.bind(this));
},
close: function() {

Loading…
Cancel
Save