Replace 'filename' by 'title' in drive when there is no filename

pull/1/head
yflory 8 years ago
parent c44f3a1044
commit fa1582f307

@ -997,8 +997,14 @@ define([
var $fhType = $('<span>', {'class': 'type clickable'}).text(Messages.table_type).click(onSortByClick); var $fhType = $('<span>', {'class': 'type clickable'}).text(Messages.table_type).click(onSortByClick);
var $fhAdate = $('<span>', {'class': 'atime clickable'}).text(Messages.fm_lastAccess).click(onSortByClick); var $fhAdate = $('<span>', {'class': 'atime clickable'}).text(Messages.fm_lastAccess).click(onSortByClick);
var $fhCdate = $('<span>', {'class': 'ctime clickable'}).text(Messages.fm_creation).click(onSortByClick); var $fhCdate = $('<span>', {'class': 'ctime clickable'}).text(Messages.fm_creation).click(onSortByClick);
$fihElement.append($fhIcon).append($fhName); // If displayTitle is false, it means the "name" is the title, so do not display the "name" header
if (displayTitle && !isWorkgroup()) { $fihElement.append($fhIcon);
if (displayTitle || isWorkgroup()) {
$fihElement.append($fhName);
} else {
$fhTitle.width('auto');
}
if (!isWorkgroup()) {
$fihElement.append($fhTitle); $fihElement.append($fhTitle);
} }
$fihElement.append($fhType); $fihElement.append($fhType);

Loading…
Cancel
Save