Take images with egwURL format into account

This commit is contained in:
Hadi Nategh 2022-08-01 16:02:50 +02:00
parent ab0bf89d17
commit 66394b3e29

View File

@ -176,7 +176,7 @@ export class Et2Button extends Et2InputWidget(SlButton)
set image(new_image : string)
{
let oldValue = this.__image;
if(new_image.indexOf("http") >= 0)
if(new_image.indexOf("http") >= 0 || new_image.indexOf(egw.webserverUrl) >=0)
{
this.__image = new_image
}