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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user