From 35a859923a740294de29eb32d492896589ae37d8 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 7 Dec 2020 07:10:17 -0800 Subject: [PATCH] Issue #4270 - .webp upload support --- e107_web/js/core/mediaManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_web/js/core/mediaManager.js b/e107_web/js/core/mediaManager.js index 4d95faed1..c39a3428e 100644 --- a/e107_web/js/core/mediaManager.js +++ b/e107_web/js/core/mediaManager.js @@ -792,7 +792,7 @@ console.log('Bbcode: '+bbcode); } var src = $(e).attr("data-src"); // heep here. - if(src === null) // old way - href='myscript.php#id-to-target + if(src !== null) // old way - href='myscript.php#id-to-target { var tmp = src.split('#'); id = tmp[1]; @@ -898,7 +898,7 @@ console.log('Bbcode: '+bbcode); // Specify what files to browse for filters: [ - {title: "Image files", extensions: extImg || "jpg,gif,png,jpeg,svg"}, + {title: "Image files", extensions: extImg || "jpg,gif,png,jpeg,svg,apng,webp"}, {title: "Zip files", extensions: extArchive || "zip,gz,rar"}, {title: "Document files", extensions: extDoc || "pdf,doc,docx,xls,xlsm,xml"}, {title: "Media files", extensions: 'mp3,mp4,wav,ogg,webm,mid,midi'},