toggling fieldsets now uses the first div tag that is actually a direct descendant of the fieldset instead of just picking one

pull/41/head
jwollert 13 years ago
parent 700ef2eedc
commit ea7c59f2af
  1. 4
      public/javascripts/application.js

@ -74,13 +74,13 @@ function toggleAllRowGroups(el) {
function toggleFieldset(el) {
var fieldset = Element.up(el, 'fieldset');
fieldset.toggleClassName('collapsed');
Effect.toggle(fieldset.down('div'), 'slide', {duration:0.2});
Effect.toggle(fieldset.down('>div'), 'slide', {duration:0.2});
}
function hideFieldset(el) {
var fieldset = Element.up(el, 'fieldset');
fieldset.toggleClassName('collapsed');
fieldset.down('div').hide();
fieldset.down('>div').hide();
}
var fileFieldCount = 1;

Loading…
Cancel
Save