mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
re-introduce logic to open unsupported formats in new tabs if selection is active
This commit is contained in:
parent
d0bc23c38d
commit
999652bde5
|
|
@ -37,8 +37,8 @@ window.baguetteBox = (function () {
|
|||
scrollCSS = ['', ''],
|
||||
scrollTimer = 0,
|
||||
re_i = APPLE ?
|
||||
/^[^?]+\.(a?png|avif|bmp|gif|hei[cf]s?|jfif|jpe?g|jxl|svg|tiff?|webp)(\?|$)/i :
|
||||
/^[^?]+\.(a?png|avif|bmp|gif|jfif|jpe?g|jxl|svg|tiff?|webp)(\?|$)/i,
|
||||
/^[^?]+\.(a?png|avif|bmp|gif|hei[cf]s?|jfif|jpe?g|jxl|svg|ico|tiff?|webp)(\?|$)/i :
|
||||
/^[^?]+\.(a?png|avif|bmp|gif|jfif|jpe?g|jxl|svg|ico|tiff?|webp)(\?|$)/i,
|
||||
re_v = /^[^?]+\.(webm|mkv|mp4|m4v|mov)(\?|$)/i,
|
||||
re_cbz = /^[^?]+\.(cbz)(\?|$)/i,
|
||||
anims = ['slideIn', 'fadeIn', 'none'],
|
||||
|
|
|
|||
|
|
@ -6471,8 +6471,8 @@ window.thegrid = (function () {
|
|||
else if (is_txt && !has(['md', 'htm', 'html'], is_txt))
|
||||
atext.click();
|
||||
|
||||
// else if (!is_img && have_sel)
|
||||
// window.open(qhref, '_blank');
|
||||
else if (!is_img && !is_dir && have_sel)
|
||||
window.open(qhref, '_blank');
|
||||
|
||||
else {
|
||||
if (!dbl){
|
||||
|
|
|
|||
Loading…
Reference in a new issue