Support audio mime tyep for expose view, in order to play audio file

This commit is contained in:
Hadi Nategh 2015-01-23 15:53:21 +00:00
parent 9c812c1799
commit 355ef81252
2 changed files with 2 additions and 2 deletions

View File

@ -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 mediaContent = [];
if (_value && _value.mime && _value.mime.match(/video/,'ig'))
if (_value && _value.mime && _value.mime.match(/video|audio/,'ig'))
{
mediaContent = [{
title: _value.name,

View File

@ -48,7 +48,7 @@ function expose (widget)
};
// 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
var gallery = null;