mirror of https://github.com/OCA/web.git
[FIX] web_dialog_size: do not expand by default and correctly honor default_maximize parameter
parent
e106a885e1
commit
b42e4cc23f
|
@ -2,8 +2,7 @@ Expand Dialog
|
|||
=============
|
||||
|
||||
A module that lets the user expand/restore the dialog box size through a button
|
||||
in the upper right corner (mimicking most windows managers). By default,
|
||||
all dialog boxes are expanded.
|
||||
in the upper right corner (mimicking most windows managers).
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
|
|
@ -8,11 +8,6 @@ openerp.web_dialog_size= function (instance) {
|
|||
.on('click', self.proxy('_extending'));
|
||||
self.$dialog_box.find('.dialog_button_restore')
|
||||
.on('click', self.proxy('_restore'));
|
||||
if(this.dialog_options.size == 'large')
|
||||
{
|
||||
self._extending();
|
||||
return result;
|
||||
}
|
||||
return jQuery.when(result).then(function()
|
||||
{
|
||||
var deferred = null;
|
||||
|
|
Loading…
Reference in New Issue