[FIX] each view type do_push_state at least once

bzr revid: chs@openerp.com-20120103160650-su6zcrepd8fqpbai
This commit is contained in:
Christophe Simonis 2012-01-03 17:06:50 +01:00
parent c3a3ec8bfb
commit 8eb5a7c75a
5 changed files with 21 additions and 0 deletions

View File

@ -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 () {

View File

@ -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();
}
});
};

View File

@ -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();
}
});

View File

@ -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();
}
});
};

View File

@ -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();
}
});