Dashboard: Fix TabIcons (by Talkabout)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8718 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
svenson08 2015-06-08 19:55:33 +00:00
parent 753b5bec85
commit 2d3ec72e89

View File

@ -51,7 +51,7 @@ function dashboard_loadsvgIcon(svgIcon, svgColor, destObj) { //search Icon in ev
if (!svgIcon.match('.svg')) {svgIcon = svgIcon+'.svg';} if (!svgIcon.match('.svg')) {svgIcon = svgIcon+'.svg';}
groupdata[i] = groupdata[i].replace('.',''); groupdata[i] = groupdata[i].replace('.','');
groupdata[i] = groupdata[i].replace('/opt/fhem',''); groupdata[i] = groupdata[i].replace('/opt/fhem','');
dashboard_showsvgIcon(document.location.pathname+groupdata[i]+"/"+svgIcon, svgColor, destObj); dashboard_showsvgIcon(document.location.pathname.replace(/\/+$/, '')+groupdata[i]+"/"+svgIcon, svgColor, destObj);
} }
} }
} }