Created
July 25, 2014 04:20
-
-
Save fbrnc/f4e9fd908c8e01754b71 to your computer and use it in GitHub Desktop.
Make Magento System Configuration tabs collapsable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quick'n'dirty | |
// TODO: | |
// - store status in a cookie | |
// - restore status from cookie | |
// - prevent tab that contains active tabs from being collapsed | |
// - change icon when collapsed | |
// - change mouse pointer | |
$$('#system_config_tabs dt.label').each(function(s) { | |
s.observe('click', function(label) { | |
s.siblings().each(function(a) { a.toggle(); }) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment