fix opening md files from gridview

This commit is contained in:
ed 2024-11-23 17:55:05 +00:00
parent 537a6e50e9
commit 520ac8f4dc

View file

@ -5945,7 +5945,7 @@ var thegrid = (function () {
fid = oth.getAttribute('id'), fid = oth.getAttribute('id'),
aplay = ebi('a' + fid), aplay = ebi('a' + fid),
atext = ebi('t' + fid), atext = ebi('t' + fid),
is_txt = atext && showfile.getlang(href) && !/\.ts$/.test(href), is_txt = atext && !/\.ts$/.test(href) && showfile.getlang(href),
is_img = img_re.test(href), is_img = img_re.test(href),
is_dir = href.endsWith('/'), is_dir = href.endsWith('/'),
is_srch = !!ebi('unsearch'), is_srch = !!ebi('unsearch'),