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

8 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
  6. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. auto repair near me

    ReplyDelete
  7. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! auto reply text message

    ReplyDelete
  8. You know a city with other numerous thing to do is Shkodra in Albania. You can visit the great castle which has an amazing history behind it, visit the Marubi Photography museum, go for a walk in the grand bazaar and other interesting things. Make sure to add it to your travel list. Albanian Cities

    ReplyDelete

© Chutium / Teng Qiu @ ABC Netz Group