mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Merge pull request #1044 from joezsweet/patch-1
[11.0][FIX][web_dialog_size] default_maximize check
This commit is contained in:
@@ -16,8 +16,8 @@ Dialog.include({
|
|||||||
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.proxy('_extending'));
|
||||||
self.$modal.find('.dialog_button_restore').on('click', self.proxy('_restore'));
|
self.$modal.find('.dialog_button_restore').on('click', self.proxy('_restore'));
|
||||||
return config.done(function(default_maximize) {
|
return config.done(function(r) {
|
||||||
if (default_maximize) {
|
if (r.default_maximize) {
|
||||||
self._extending();
|
self._extending();
|
||||||
} else {
|
} else {
|
||||||
self._restore();
|
self._restore();
|
||||||
|
|||||||
Reference in New Issue
Block a user