infobox: ensure sidebar box is visible on create

This commit is contained in:
Nils Schneider 2015-07-06 22:30:45 +02:00
parent e834e2ab94
commit cc505f4d4a
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@ define(["infobox/link", "infobox/node"], function (Link, Node) {
function create() {
destroy()
sidebar.ensureVisible()
sidebar.hide()
el = document.createElement("div")

View File

@ -30,6 +30,10 @@ define([], function () {
d.render(container)
}
self.ensureVisible = function () {
sidebar.classList.remove("hidden")
}
self.hide = function () {
container.classList.add("hidden")
}