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();

5 comments:

  1. Thanks! This worked perfectly!

    ReplyDelete
  2. This is what I was looking for. Thanks!!

    ReplyDelete
  3. I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. https://dieseltester-cn.com/diesel-injection-test-equipment-fuel-pump-tester-12psb-c/

    ReplyDelete
  4. I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. https://dieseltester-cn.com/diesel-injection-test-equipment-fuel-pump-tester-12psb-c/

    ReplyDelete
  5. You presently have a waitlist of the potential carports to use for your earnestly required auto repairs. You currently need to rapidly vet these out. First telephone the auto repairs up and approach them for an administration quote for your make and model of vehicle.https://dieseltester-cn.com/823/diesel-fuel-injection-pump-test-bench-2/

    ReplyDelete

© Chutium / Teng Qiu @ ABC Netz Group