×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Can I turn off automatic sidebar open?

Can I turn off automatic sidebar open? 12 years 3 months ago #17326

  • Nick Coughlin
  • Nick Coughlin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hello:

I've searched the forum for this because I thought it would have been discussed already - but didn't find anything about shutting off the automatic opening of the sidebar. Is this possible to do in the configuration, or does it require a hack?

Thank you,
Nick

Can I turn off automatic sidebar open? 12 years 3 months ago #17328

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Nick,
Well, you can go to media/com_hotspots/js/modules/menu.js line 354
        if(!this.menuClosed) {
            this.slideMenu.slideOut();
            if (this.slideMenu.open) {
                window.fireEvent('menuOpen');
            }
        }

change it to:
        if(!this.menuClosed) {
//            this.slideMenu.slideOut();
            if (this.slideMenu.open) {
//                window.fireEvent('menuOpen');
            }
        }

The line number is from the latest dev release, but the code is the same in 3.1 -> so if you don't find the code on that line, just look around and you'll find it.

The only way to open the menu now would be by clicking on the menu button.

Daniel
The following user(s) said Thank You: Nick Coughlin

Can I turn off automatic sidebar open? 12 years 3 months ago #17331

  • Nick Coughlin
  • Nick Coughlin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
You really do have good customer service, Daniel. That worked like a charm. I will go rate you favorably now :)
  • Page:
  • 1
Time to create page: 0.110 seconds