diff options
author | Michal Čihař <michal@cihar.com> | 2014-02-18 17:08:06 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2014-02-18 17:08:06 +0400 |
commit | f396eac331be9057f0ecf6e974829c1e0d3e57c5 (patch) | |
tree | ad18850d20684e2aa3a5086a81987207afbd5b99 /js/navigation.js | |
parent | 3a9546a8e51dd87d8494e3c46214094de559cb7d (diff) | |
parent | d3e8fc3a2ab1ebb979cf3ee4e5cc72d70f2c7493 (diff) |
Merge pull request #930 from WhaleWatching/imp_nav_ani
Improve navigation .list_container animation
Diffstat (limited to 'js/navigation.js')
-rw-r--r-- | js/navigation.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/navigation.js b/js/navigation.js index f93f8c21d2..7f3480b18c 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -259,7 +259,7 @@ function expandTreeNode($expandElem, callback) { if ($expandElem.hasClass('loaded')) { if ($icon.is('.ic_b_plus')) { $icon.removeClass('ic_b_plus').addClass('ic_b_minus'); - $children.show('fast'); + $children.slideDown('fast'); } if (callback && typeof callback == 'function') { callback.call(); @@ -279,7 +279,7 @@ function expandTreeNode($expandElem, callback) { $icon.removeClass('ic_b_plus').addClass('ic_b_minus'); $destination .children('div.list_container') - .show('fast'); + .slideDown('fast'); if ($destination.find('ul > li').length == 1) { $destination.find('ul > li') .find('a.expander.container') @@ -335,7 +335,7 @@ function collapseTreeNode($expandElem) { if ($expandElem.hasClass('loaded')) { if ($icon.is('.ic_b_minus')) { $icon.removeClass('ic_b_minus').addClass('ic_b_plus'); - $children.hide('fast'); + $children.slideUp('fast'); } } $expandElem.blur(); |