set default state of liste items to open
This commit is contained in:
parent
a1d08426ce
commit
ba237335db
|
@ -180,7 +180,7 @@ class BServer:
|
||||||
if not group._group_actions:
|
if not group._group_actions:
|
||||||
continue
|
continue
|
||||||
prefix = getattr(group, "prefix", None)
|
prefix = getattr(group, "prefix", None)
|
||||||
result.append('''<h3 id="h-%s" onclick="showHide(%s)">%s</h3>\n<table id="%s">\n''' % (groupid, groupid, group.title, groupid))
|
result.append('''<h3 id="h-%s" class="open" onclick="showHide(%s)">%s</h3>\n<table id="%s">\n''' % (groupid, groupid, group.title, groupid))
|
||||||
for a in group._group_actions:
|
for a in group._group_actions:
|
||||||
if a.dest in ("input", "output"):
|
if a.dest in ("input", "output"):
|
||||||
continue
|
continue
|
||||||
|
@ -264,7 +264,7 @@ Create boxes and more with a laser cutter!
|
||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
""" ]
|
""" ]
|
||||||
for nr, group in enumerate(self.groups):
|
for nr, group in enumerate(self.groups):
|
||||||
result.append('''<h3 id="h-%s" onclick="showHide('%s')">%s</h3>\n<div id="%s">\n''' % (nr, nr, group.title, nr))
|
result.append('''<h3 id="h-%s" class="open" onclick="showHide('%s')">%s</h3>\n<div id="%s">\n''' % (nr, nr, group.title, nr))
|
||||||
result.append("""
|
result.append("""
|
||||||
<div style="width: 20%%; float: right;">
|
<div style="width: 20%%; float: right;">
|
||||||
<img style="width: 100%%;" id="sample-%s" src="static/nothing.png" alt="" />
|
<img style="width: 100%%;" id="sample-%s" src="static/nothing.png" alt="" />
|
||||||
|
|
Loading…
Reference in New Issue