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

pgm2/fhemweb.js: backTick / TemplateLiterals is Ecma2015 (Forum #63530)

git-svn-id: https://svn.fhem.de/fhem/trunk@15745 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-01-01 12:21:50 +00:00
parent 119c9a3885
commit 387268f263

View File

@ -842,18 +842,18 @@ FW_treeMenu()
});
if(fnd) {
$("head").append(`
<style>
tr.menuTree { cursor:pointer; }
tr.menuTree.level1 > td > div { margin-left:10px; }
tr.menuTree.level2 > td > div { margin-left:20px; }
tr.menuTree.level3 > td > div { margin-left:30px; }
tr.menuTree.open { font-weight: bold; }
tr.menuTree > td > div > div {
display:inline-block; width:1em; height:1em; float:right;
background-size: contain;
}
</style>`);
$("head").append(
"<style>"+
"tr.menuTree { cursor:pointer; }"+
"tr.menuTree.level1 > td > div { margin-left:10px; }"+
"tr.menuTree.level2 > td > div { margin-left:20px; }"+
"tr.menuTree.level3 > td > div { margin-left:30px; }"+
"tr.menuTree.open { font-weight: bold; }"+
"tr.menuTree > td > div > div { "+
"display:inline-block; width:1em; height:1em; float:right;"+
"background-size: contain;"+
"}"+
"</style>");
var t = $("div#menu table.room");
$(t).find("tr[data-mTree]").not(".level0").hide();
$(t).find("tr.menuTree").click(function(){treeClick(this)});