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 (https://answers.launchpad.net/graphite/+question/192777)

a small hack to fix it:

/opt/graphite/webapp/content/js/dashboard.js

function initDashboard ()

line:720
comment this line: navBar.collapse();

take this line out of the if (initialState) condition

line:722
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();

2 comments:

© Chutium / Teng Qiu @ ABC Netz Group