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