[FIX] Hide only last item on push
bzr revid: fme@openerp.com-20120712091756-g8gsmdxuvte9phse
This commit is contained in:
parent
571648e4cf
commit
7bc9127239
|
@ -28,9 +28,10 @@ instance.web.ActionManager = instance.web.Widget.extend({
|
|||
}
|
||||
},
|
||||
push_breadcrumb: function(item) {
|
||||
_.each(this.breadcrumbs, function(i) {
|
||||
i.hide();
|
||||
});
|
||||
var last = this.breadcrumbs.slice(-1)[0];
|
||||
if (last) {
|
||||
last.hide();
|
||||
}
|
||||
item.id = _.uniqueId('breadcrumb_');
|
||||
item.show = item.show || function() {
|
||||
item.widget.$element.show();
|
||||
|
@ -282,9 +283,6 @@ instance.web.ActionManager = instance.web.Widget.extend({
|
|||
}
|
||||
});
|
||||
|
||||
instance.web.BreadCrumb = instance.web.CallbackEnabled.extend({
|
||||
});
|
||||
|
||||
instance.web.ViewManager = instance.web.Widget.extend({
|
||||
template: "ViewManager",
|
||||
init: function(parent, dataset, views, flags) {
|
||||
|
|
Loading…
Reference in New Issue