2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

f18.js: fix enabling on new installation (Forum 82351)

git-svn-id: https://svn.fhem.de/fhem/trunk@15899 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-01-15 12:18:01 +00:00
parent 156dd19796
commit 2cdced2725

View File

@ -7,13 +7,19 @@ var f18_small = (screen.width < 480 || screen.height < 480);
$(window).resize(f18_resize);
$(document).ready(function(){
f18_sd = $("body").attr("data-styleData");
if(f18_sd) {
eval("f18_sd="+f18_sd);
if(!f18_sd)
f18_sd = {};
f18_attr = f18_sd.f18;
} else {
f18_sd = {};
}
if(!f18_attr) {
f18_attr = { "Pinned.menu":"true" };
f18_resetCol();