1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Issue #4270 - .webp upload support

This commit is contained in:
Cameron 2020-12-07 07:10:17 -08:00
parent 9b917c0000
commit 35a859923a

View File

@ -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'},