Dashboard: Fix TabIcons (by Talkabout)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8718 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
svenson08
2015-06-08 19:55:33 +00:00
parent 2859e55575
commit f32ca10fff

View File

@@ -51,7 +51,7 @@ function dashboard_loadsvgIcon(svgIcon, svgColor, destObj) { //search Icon in ev
if (!svgIcon.match('.svg')) {svgIcon = svgIcon+'.svg';}
groupdata[i] = groupdata[i].replace('.','');
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);
}
}
}