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 3c7b1c228b
commit b6a271ba36

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();