diff --git a/WebKit/scripts/controller/Sidebar.js b/WebKit/scripts/controller/Sidebar.js index 81d5599..fa5f0ad 100644 --- a/WebKit/scripts/controller/Sidebar.js +++ b/WebKit/scripts/controller/Sidebar.js @@ -40,6 +40,9 @@ function(HostApp, Paths, Cache) { document.getElementById("sidebar").appendChild(this.body); + // initial seting of the class + document.body.className = "body-timeline"; + this.setEntityAvatar(); } @@ -151,6 +154,9 @@ function(HostApp, Paths, Cache) { active_part.show(); + // Replace class + document.body.className = "body-" + active_li.className.split("-")[1]; + // Show active icon for(var li in this.menu) { if (this.menu[li] != active_part) {