diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-02-28 20:29:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-02-28 20:29:38 +0000 |
commit | 972d4f8de7d4725d405a2ca4f4d32a56dc4f26e9 (patch) | |
tree | ff51c3239df605745aa5bb19fb6ae1b074439f83 /misc | |
parent | e6543caaffb11f1a8517234fb13a914cf661f5a6 (diff) | |
download | brdo-972d4f8de7d4725d405a2ca4f4d32a56dc4f26e9.tar.gz brdo-972d4f8de7d4725d405a2ca4f4d32a56dc4f26e9.tar.bz2 |
- Patch #120291 by njivy: collapse.js compatible with jQuery 1.1.1.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/collapse.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/misc/collapse.js b/misc/collapse.js index 08a4a4b96..5abe06c14 100644 --- a/misc/collapse.js +++ b/misc/collapse.js @@ -7,17 +7,12 @@ Drupal.toggleFieldset = function(fieldset) { if ($(fieldset).is('.collapsed')) { var content = $('> div', fieldset).hide(); $(fieldset).removeClass('collapsed'); - content.slideDown(300, { - complete: function() { + content.slideDown(300, + function() { // Make sure we open to height auto $(this).css('height', 'auto'); Drupal.collapseScrollIntoView(this.parentNode); this.parentNode.animating = false; - }, - step: function() { - // Scroll the fieldset into view - Drupal.collapseScrollIntoView(this.parentNode); - } }); if (typeof Drupal.textareaAttach != 'undefined') { // Initialize resizable textareas that are now revealed |