[openstreetmap-website] Also close sidebar when clicking on the "View" link. (#257)
notifications at github.com
Sun May 5 18:51:34 UTC 2013
I'm not sure about this - the fact that clicking on the View tab closes the side bar is more of an accident that anything deliberate, so trying to make it more efficient is not really fixing anything.
As far as I can see with your patch the page will still reload when the view tab is clicked if the sidebar isn't open, so if your goal is to avoid reloads when view is clicked then this doesn't achieve it. A better solution would probably just be to disable the view tab link when you're already on the index page?
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev