mirror of https://github.com/OCA/web.git
[FIX] web_dialog_size js warnings
parent
69f82f7048
commit
abaca8693c
|
@ -14,8 +14,12 @@ Dialog.include({
|
||||||
willStart: function () {
|
willStart: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
return this._super.apply(this, arguments).then(function () {
|
return this._super.apply(this, arguments).then(function () {
|
||||||
self.$modal.find('.dialog_button_extend').on('click', self.proxy('_extending'));
|
self.$modal.find('.dialog_button_extend').on('click',
|
||||||
self.$modal.find('.dialog_button_restore').on('click', self.proxy('_restore'));
|
self.proxy('_extending')
|
||||||
|
);
|
||||||
|
self.$modal.find('.dialog_button_restore').on('click',
|
||||||
|
self.proxy('_restore')
|
||||||
|
);
|
||||||
return config.then(function (r) {
|
return config.then(function (r) {
|
||||||
if (r.default_maximize) {
|
if (r.default_maximize) {
|
||||||
self._extending();
|
self._extending();
|
||||||
|
@ -26,12 +30,12 @@ Dialog.include({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
opened: function(handler) {
|
opened: function () {
|
||||||
return this._super.apply(this, arguments).then(function () {
|
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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
Loading…
Reference in New Issue