mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-19 13:10:58 +01:00
Support audio mime tyep for expose view, in order to play audio file
This commit is contained in:
parent
9c812c1799
commit
355ef81252
@ -327,7 +327,7 @@ var et2_vfsMime = expose(et2_valueWidget.extend([et2_IDetachedDOM],
|
|||||||
{
|
{
|
||||||
var base_url = egw.webserverUrl.match(/^\//,'ig')?egw(window).window.location.origin + egw.webserverUrl:egw.webserverUrl;
|
var base_url = egw.webserverUrl.match(/^\//,'ig')?egw(window).window.location.origin + egw.webserverUrl:egw.webserverUrl;
|
||||||
var mediaContent = [];
|
var mediaContent = [];
|
||||||
if (_value && _value.mime && _value.mime.match(/video/,'ig'))
|
if (_value && _value.mime && _value.mime.match(/video|audio/,'ig'))
|
||||||
{
|
{
|
||||||
mediaContent = [{
|
mediaContent = [{
|
||||||
title: _value.name,
|
title: _value.name,
|
||||||
|
@ -48,7 +48,7 @@ function expose (widget)
|
|||||||
};
|
};
|
||||||
|
|
||||||
// For filtering to only show things we can handle
|
// For filtering to only show things we can handle
|
||||||
var mime_regex = new RegExp(/video\/|image\//);
|
var mime_regex = new RegExp(/video\/|image|audio\//);
|
||||||
|
|
||||||
// Only one gallery
|
// Only one gallery
|
||||||
var gallery = null;
|
var gallery = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user