diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-06-04 10:36:42 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-06-04 10:36:42 +0000 |
commit | 0fe9be0b6ea7168da7df8220e554da4ed2db05f4 (patch) | |
tree | 7765e024d750338c9174b53e42e6e6e713d16ffa /misc/collapse.js | |
parent | 5c09cfabb923574fd998b3bf98050cbcffca92db (diff) | |
download | brdo-0fe9be0b6ea7168da7df8220e554da4ed2db05f4.tar.gz brdo-0fe9be0b6ea7168da7df8220e554da4ed2db05f4.tar.bz2 |
#146462 by Gurpartap Singh: update jQuery to 1.1.2 and make the core JS files compatible with the new version
Diffstat (limited to 'misc/collapse.js')
-rw-r--r-- | misc/collapse.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/misc/collapse.js b/misc/collapse.js index 58aae89fa..c1fd3d4c3 100644 --- a/misc/collapse.js +++ b/misc/collapse.js @@ -7,12 +7,18 @@ Drupal.toggleFieldset = function(fieldset) { if ($(fieldset).is('.collapsed')) { var content = $('> div', fieldset).hide(); $(fieldset).removeClass('collapsed'); - content.slideDown(300, - function() { + content.slideDown( { + duration: 300, + complete: 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 |