rem: $('fieldset.collapsible > legend').each(function() { 
add: $(document).ready(function() { $('fieldset.collapsible > legend').each(function() { 
context:     $('fieldset.collapsible > legend').each(function() {      var fieldset = $(this.parentNode);      // Expand if there are errors inside      if ($('input.error, textarea.error, select.error', fieldset).size() > 0) {        fieldset.removeClass('collapsed');      }      // Turn the legend into a clickable link and wrap the contents of the fieldset      // in a div for easier animation      var text = this.innerHTML;      $(this).empty().append($('<a href="#">'+ text +'</a>').click(function() {        var fieldset = $(this).parents('fieldset:first')[0];        // Don't animate multiple times        if (!fieldset.animating) {          fieldset.animating = true;          Drupal.toggleFieldset(fieldset);        }        return false;      })).after($('<div class="fieldset-wrapper"></div>').append(fieldset.children(':not(legend)')));    });
meta: 3650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3650/972d4f8de7d4725d405a2ca4f4d32a56dc4f26e9/collapse.js/clean/misc/collapse.js