[FIX] each view type do_push_state at least once
bzr revid: chs@openerp.com-20120103160650-su6zcrepd8fqpbai
This commit is contained in:
parent
c3a3ec8bfb
commit
8eb5a7c75a
|
@ -397,6 +397,7 @@ openerp.web_calendar.CalendarView = openerp.web.View.extend({
|
|||
if (self.sidebar) {
|
||||
self.sidebar.$element.show();
|
||||
}
|
||||
self.do_push_state({});
|
||||
});
|
||||
},
|
||||
do_hide: function () {
|
||||
|
|
|
@ -299,6 +299,11 @@ openerp.web.DiagramView = openerp.web.View.extend({
|
|||
}
|
||||
$pager.find('span.oe_pager_index').html(index);
|
||||
$pager.find('span.oe_pager_count').html(this.dataset.count);
|
||||
},
|
||||
|
||||
do_show: function() {
|
||||
this.do_push_state({});
|
||||
return this._super();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -517,6 +517,11 @@ openerp.web_gantt.GanttView = openerp.web.View.extend({
|
|||
self.on_project_loaded(projects);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
do_show: function() {
|
||||
this.do_push_state({});
|
||||
return this._super();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -424,6 +424,11 @@ openerp.web_graph.GraphView = openerp.web.View.extend({
|
|||
}
|
||||
return self.dataset.read_slice(self.list_fields(), {}, $.proxy(self, 'schedule_chart'));
|
||||
});
|
||||
},
|
||||
|
||||
do_show: function() {
|
||||
this.do_push_state({});
|
||||
return this._super();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -271,6 +271,11 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
|
|||
group.$element.css('width', Math.round(100/unfolded) + '%');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
do_show: function() {
|
||||
this.do_push_state({});
|
||||
return this._super();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue