mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
support for data: urls
This commit is contained in:
parent
44a0079b9d
commit
ea2e9775ea
@ -189,18 +189,18 @@ var et2_image = (function(){ "use strict"; return expose(et2_baseWidget.extend([
|
||||
|
||||
this.options.src = _value;
|
||||
|
||||
// allow url's too
|
||||
if (_value[0] == '/' || _value.substr(0,4) == 'http' || _value.substr(0,5) == 'data:')
|
||||
{
|
||||
this.image.attr('src', _value).show();
|
||||
return true;
|
||||
}
|
||||
var src = this.egw().image(_value);
|
||||
if (src)
|
||||
{
|
||||
this.image.attr("src", src).show();
|
||||
return true;
|
||||
}
|
||||
// allow url's too
|
||||
else if (_value[0] == '/' || _value.substr(0,4) == 'http')
|
||||
{
|
||||
this.image.attr('src', _value).show();
|
||||
return true;
|
||||
}
|
||||
src = null;
|
||||
if (this.options.default_src)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user