mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix base_urls for expose view in vfs and image widget
This commit is contained in:
parent
262c92558e
commit
95007f20d6
@ -224,7 +224,7 @@ var et2_image = expose(et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
*/
|
||||
getMedia: function (_value)
|
||||
{
|
||||
var base_url = egw(window).window.location.origin + egw.webserverUrl + "/";
|
||||
var base_url = egw.webserverUrl.match(/^\//,'ig')?egw(window).window.location.origin + egw.webserverUrl + '/':egw.webserverUrl + '/';
|
||||
var mediaContent = [];
|
||||
if (_value)
|
||||
{
|
||||
|
@ -318,7 +318,7 @@ var et2_vfsMime = expose(et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
*/
|
||||
getMedia: function (_value)
|
||||
{
|
||||
var base_url = egw(window).window.location.origin + egw.webserverUrl;
|
||||
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'))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user