fix rendering of bottom toolbar in repository browser, if path is null

This commit is contained in:
Sebastian Sdorra
2015-06-13 20:02:44 +02:00
parent 3e34338664
commit 9475971a2a

View File

@@ -414,7 +414,12 @@ Sonia.repository.RepositoryBrowser = Ext.extend(Ext.grid.GridPanel, {
var bbar = this.getBottomToolbar();
bbar.removeAll();
var parts = path.split('/');
var parts;
if (path){
parts = path.split('/');
} else {
parts = [];
}
var currentPath = '';
var items = [this.createFolderButton(currentPath, '')];