gui: use fixed icon for togglebutton
This commit is contained in:
parent
a240bb2f7a
commit
f81ee255cc
@ -60,16 +60,13 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist,
|
||||
contentDiv.appendChild(buttons)
|
||||
|
||||
var buttonToggle = document.createElement("button")
|
||||
buttonToggle.textContent = ""
|
||||
buttonToggle.textContent = ""
|
||||
buttonToggle.onclick = function () {
|
||||
if (content.constructor === Map) {
|
||||
buttonToggle.textContent = ""
|
||||
if (content.constructor === Map)
|
||||
router.view("g")
|
||||
} else {
|
||||
buttonToggle.textContent = ""
|
||||
else
|
||||
router.view("m")
|
||||
}
|
||||
}
|
||||
|
||||
buttons.appendChild(buttonToggle)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user