forked from Techsystech/web
[FIX] web_dialog_size js warnings
parent
23e6fa8524
commit
cc1a521d70
|
@ -14,8 +14,12 @@ Dialog.include({
|
|||
willStart: function () {
|
||||
var self = this;
|
||||
return this._super.apply(this, arguments).then(function () {
|
||||
self.$modal.find('.dialog_button_extend').on('click', self.proxy('_extending'));
|
||||
self.$modal.find('.dialog_button_restore').on('click', self.proxy('_restore'));
|
||||
self.$modal.find('.dialog_button_extend').on('click',
|
||||
self.proxy('_extending')
|
||||
);
|
||||
self.$modal.find('.dialog_button_restore').on('click',
|
||||
self.proxy('_restore')
|
||||
);
|
||||
return config.then(function (r) {
|
||||
if (r.default_maximize) {
|
||||
self._extending();
|
||||
|
@ -26,12 +30,12 @@ Dialog.include({
|
|||
});
|
||||
},
|
||||
|
||||
opened: function(handler) {
|
||||
opened: function () {
|
||||
return this._super.apply(this, arguments).then(function () {
|
||||
if (this.$modal) {
|
||||
this.$modal.draggable({
|
||||
handle: '.modal-header',
|
||||
helper: false
|
||||
helper: false,
|
||||
});
|
||||
}
|
||||
}.bind(this));
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"installable": True,
|
||||
"depends": ["web", "mail"],
|
||||
"development_status": "Production/Stable",
|
||||
"maintainers": ['Yajo', 'Tardo'],
|
||||
"maintainers": ["Yajo", "Tardo"],
|
||||
"data": ["views/assets.xml", "views/res_users.xml", "views/web.xml"],
|
||||
"qweb": [
|
||||
"static/src/xml/apps.xml",
|
||||
|
|
Loading…
Reference in New Issue