mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 05:02:28 -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 = ['', ''],
|
scrollCSS = ['', ''],
|
||||||
scrollTimer = 0,
|
scrollTimer = 0,
|
||||||
re_i = APPLE ?
|
re_i = APPLE ?
|
||||||
/^[^?]+\.(a?png|avif|bmp|gif|hei[cf]s?|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|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_v = /^[^?]+\.(webm|mkv|mp4|m4v|mov)(\?|$)/i,
|
||||||
re_cbz = /^[^?]+\.(cbz)(\?|$)/i,
|
re_cbz = /^[^?]+\.(cbz)(\?|$)/i,
|
||||||
anims = ['slideIn', 'fadeIn', 'none'],
|
anims = ['slideIn', 'fadeIn', 'none'],
|
||||||
|
|
|
||||||
|
|
@ -6471,8 +6471,8 @@ window.thegrid = (function () {
|
||||||
else if (is_txt && !has(['md', 'htm', 'html'], is_txt))
|
else if (is_txt && !has(['md', 'htm', 'html'], is_txt))
|
||||||
atext.click();
|
atext.click();
|
||||||
|
|
||||||
// else if (!is_img && have_sel)
|
else if (!is_img && !is_dir && have_sel)
|
||||||
// window.open(qhref, '_blank');
|
window.open(qhref, '_blank');
|
||||||
|
|
||||||
else {
|
else {
|
||||||
if (!dbl){
|
if (!dbl){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue