3
0
Fork 0

Merge pull request #1044 from joezsweet/patch-1

[11.0][FIX][web_dialog_size] default_maximize check
11.0
Pedro M. Baeza 2018-09-26 09:35:11 +02:00 committed by GitHub
commit bdaaa6a3de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ Dialog.include({
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'));
return config.done(function(default_maximize) {
if (default_maximize) {
return config.done(function(r) {
if (r.default_maximize) {
self._extending();
} else {
self._restore();