Skip to content

Instantly share code, notes, and snippets.

@cyberfox
Created December 6, 2009 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberfox/250002 to your computer and use it in GitHub Desktop.
Save cyberfox/250002 to your computer and use it in GitHub Desktop.
$$('.switch').each(function(elem) {
real_element = elem.id.replace("-switch", "");
if(!$(real_element).visible()) {
table = elem.parentNode.parentNode.parentNode.parentNode;
table.hide();
if(table.previousElementSibling != null) {
if(table.previousElementSibling.tagName == 'BR') {
table.previousElementSibling.hide();
}
}
}
});
$$('.projectCategoryGroup').each(function(elem) {
prevTag = elem.previousElementSibling.previousElementSibling;
prevName = prevTag.tagName;
elem.previousElementSibling.hide();
prevTag.hide();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment