From f81ee255cca6356c79484bac6dfab8d1101cebed Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 7 Jul 2015 12:51:12 +0200 Subject: [PATCH] gui: use fixed icon for togglebutton --- lib/gui.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/gui.js b/lib/gui.js index 553ea7a..236a472 100644 --- a/lib/gui.js +++ b/lib/gui.js @@ -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)