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) 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)