Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Make Magento System Configuration tabs collapsable
// 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