From 383b602c671ecb8c546dfa82df84c8093d4b13e4 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 25 Apr 2019 11:57:42 -0600 Subject: [PATCH] Etemplate - even better formatting for display of linked files in sub-directories Now looks good for multiple files in the same sub-dir, not just one file per sub-dir --- api/js/etemplate/et2_widget_link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_link.js b/api/js/etemplate/et2_widget_link.js index 03a933c00b..30e883114d 100644 --- a/api/js/etemplate/et2_widget_link.js +++ b/api/js/etemplate/et2_widget_link.js @@ -2168,9 +2168,9 @@ var et2_link_list = (function(){ "use strict"; return et2_link_string.extend( } } var filename = dirs.pop(); - if(reformat && dirs.length === 1) + if(reformat && (dirs.length - i) === 0) { - $td.html(' - '+dirs.join('')); + $td.html(' - '+filename); } else {