|
@@ -1258,7 +1258,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
if (row["type"] == "1") {
|
|
if (row["type"] == "1") {
|
|
return `<i class="fas fa-folder"></i> <a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
|
|
return `<i class="fas fa-folder"></i> <a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
|
|
}
|
|
}
|
|
- if (row["size"] == "") {
|
|
|
|
|
|
+ if (row["size"] === "") {
|
|
return `<i class="fas fa-external-link-alt"></i> <a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
|
|
return `<i class="fas fa-external-link-alt"></i> <a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
|
|
}
|
|
}
|
|
let icon = getIconForFile(data);
|
|
let icon = getIconForFile(data);
|
|
@@ -1271,7 +1271,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
"data": "size",
|
|
"data": "size",
|
|
"render": function (data, type, row) {
|
|
"render": function (data, type, row) {
|
|
if (type === 'display') {
|
|
if (type === 'display') {
|
|
- if (data){
|
|
|
|
|
|
+ if (data || data === 0){
|
|
return fileSizeIEC(data);
|
|
return fileSizeIEC(data);
|
|
}
|
|
}
|
|
return "";
|
|
return "";
|