Fix base_urls for expose view in vfs and image widget

This commit is contained in:
Hadi Nategh 2015-01-20 18:47:08 +00:00
parent 262c92558e
commit 95007f20d6
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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'))
{