gui: use fixed icon for togglebutton

This commit is contained in:
Nils Schneider 2015-07-07 12:51:12 +02:00
parent a240bb2f7a
commit f81ee255cc

View File

@ -60,15 +60,12 @@ 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)