[REM] Removed auto open argument from Dialog#start()

bzr revid: fme@openerp.com-20110810120548-697agu5xajf11tvx
This commit is contained in:
Fabien Meghazi 2011-08-10 14:05:48 +02:00
parent 85b1852aa6
commit 52ba9d992d
3 changed files with 5 additions and 8 deletions

View File

@ -368,11 +368,8 @@ openerp.base.Dialog = openerp.base.OldWidget.extend({
return parseInt(val, 10);
}
},
start: function (auto_open) {
start: function () {
this.$dialog = $('<div id="' + this.element_id + '"></div>').dialog(this.dialog_options);
if (auto_open !== false) {
this.open();
}
this._super();
return this;
},
@ -964,7 +961,7 @@ openerp.base.WebClient = openerp.base.Widget.extend({
this.session = new openerp.base.Session(this,"oe_errors");
this.loading = new openerp.base.Loading(this,"oe_loading");
this.crashmanager = new openerp.base.CrashManager(this);
this.crashmanager.start(false);
this.crashmanager.start();
// Do you autorize this ? will be replaced by notify() in controller
openerp.base.Widget.prototype.notification = new openerp.base.Notification(this, "oe_notification");

View File

@ -79,7 +79,7 @@ openerp.base.ActionManager = openerp.base.Widget.extend({
if (this.dialog == null) {
this.dialog = new openerp.base.ActionDialog(this, { title: action.name, width: '80%' });
this.dialog.close_callback = on_closed;
this.dialog.start(false);
this.dialog.start();
this.dialog_viewmanager = new openerp.base.ViewManagerAction(this, action);
this.dialog_viewmanager.appendTo(this.dialog.$element);
this.dialog.open();
@ -572,7 +572,7 @@ openerp.base.View = openerp.base.Widget.extend({
},
on_sidebar_export: function() {
var export_view = new openerp.base.DataExport(this, this.dataset);
export_view.start(false);
export_view.start();
},
on_sidebar_translate: function() {
},

View File

@ -411,7 +411,7 @@ openerp.base_calendar.CalendarFormDialog = openerp.base.Dialog.extend({
this.view = view;
},
start: function() {
this._super(false);
this._super();
this.form = new openerp.base.FormView(this, this.element_id, this.dataset, this.view_id, {
sidebar: false,
pager: false