Fix default_maximize check

Checking result of rpc call, `dialog_maximize`, will end to be always `true` as the method will return a json: `{'dialog_maximize': false }`. So i changed the test to test the value of json key `dialog_maximize`
pull/1709/head
joezsweet 2018-09-21 17:24:51 +02:00 committed by Pierre Pizzetta
parent 87d70d4409
commit eaf72b4e6d
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 () { 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();