Saturday, January 25, 2014

Graphite's Dashboard JS to set auto-hide navBar on dashboard view 自动隐藏Dashboard视图中的导航栏

there is a bug in Graphite's Dashboard JS (

a small hack to fix it:


function initDashboard ()

comment this line: navBar.collapse();

take this line out of the if (initialState) condition

add: navBar.collapse();

in /opt/graphite/webapp/content/js/dashboard.js, the code block should be like this:

 717   // Load initial dashboard state if it was passed in
 718   if (initialState) {
 719     applyState(initialState);
 720     //navBar.collapse();
 721   }
 722   navBar.collapse();


© Chutium / Teng Qiu @ ABC Netz Group