FR.components.gridBreadcrumbs=Ext.extend(Ext.Toolbar,{cls:"breadcrumbsBar",overflowBtnTooltip:"See more folders",overflowLeft:true,layoutConfig:{triggerWidth:30},addItem:function(treeNode,last){var itemCfg={text:treeNode.text,treeNode:treeNode,path:treeNode.getPath("pathname")};if(last){itemCfg.cls="currentFolder";itemCfg.menuIndicator=["myfiles","sharedFolder","trash"].indexOf(treeNode.attributes.section)!=-1;itemCfg.handler=function(){FR.UI.gridPanel.selModel.clearSelections();if(!this.treeNode.ownerTree){return false}FR.UI.tree.showContextMenu(this.treeNode,false,this.el)}}else{if(treeNode.text.length>10){itemCfg.tooltip=treeNode.text}itemCfg.handler=function(){if(this.treeNode.ownerTree){this.treeNode.select().scrollIntoView()}else{FR.utils.browseToPath(this.path)}}}this.add(itemCfg)},build:function(treeNode){this.removeAll();var items=[treeNode];while(treeNode.parentNode){treeNode=treeNode.parentNode;if(treeNode.isRoot){continue}items.unshift(treeNode)}var count=items.length;Ext.each(items,function(treeNode,index){var last=index==count-1;this.addItem(treeNode,last);if(!last){this.add(new FR.components.Separator)}},this);this.doLayout(true)}});FR.components.Separator=Ext.extend(Ext.Toolbar.Item,{cls:"spacer",html:'<i class="fa fa-angle-right"></i>'});