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

11 comments:

  1. This is what I was looking for. Thanks!!

    ReplyDelete
  2. 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
  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. 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
  5. 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
  6. In fact, Key insurance according to the College Board, more automotive technology schools are now even offering courses in stress management and customer service.

    ReplyDelete
  7. Today it's a flourishing place for business and diversion, with incredible cafés, for example, the Red Prime and Iguana Mexican Grill among the numerous objections for food darlings in the city. The Flat Iron and the Triangle zone additionally draw in guests. Best GPS Trackers for Car

    ReplyDelete
  8. On the off chance that your car is being financed your bank will necessitate that you have your vehicle guaranteed, yet that you convey significantly more than the state-required least protection. Best Bicycle Carriers for cars

    ReplyDelete
  9. Get an amazing experience with a Miami exotic car rental by mph club that's in Miami Florida on your next trip. Miami exotic car rental

    ReplyDelete
  10. Every year the PEC Exam Result 2022 will be announced on the last week of December likely on 30th or 31st, and this year also announced same respectively,PSC Result 2022 Dinajpur Board the education ministry of the country has taken the decision for PSC Result 2022 BD, and the primary certificate student can follow the site to get latest updates about PSC Exam Result Date 2022 Dinajpur Board.

    ReplyDelete

© Chutium / Teng Qiu @ ABC Netz Group