From: Thierry Parmentelat Date: Wed, 6 Mar 2013 14:58:48 +0000 (+0100) Subject: smoother/slide-based hide and show of plugins X-Git-Tag: myslice-django-0.1-1~70 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=d11e94a2a74792cd0b8c43a5cab904d34ed1e788;p=myslice.git smoother/slide-based hide and show of plugins --- diff --git a/engine/static/js/plugin_init.js b/engine/static/js/plugin_init.js index c5a9de80..53f0aaf4 100644 --- a/engine/static/js/plugin_init.js +++ b/engine/static/js/plugin_init.js @@ -6,12 +6,12 @@ $(document).ready(function() { $(this).click(function () { var plugin='#'+$(this).attr('id').replace('hide-',''); var show='#'+$(this).attr('id').replace('hide-','show-'); - jQuery(plugin).hide(); jQuery(show).show(); $(this).hide();}); + $(plugin).slideUp(); $(show).show(); $(this).hide();}); }) $('.plugin-show').each(function() { $(this).click(function () { var plugin='#'+$(this).attr('id').replace('show-',''); var hide='#'+$(this).attr('id').replace('show-','hide-'); - jQuery(plugin).show(); jQuery(hide).show(); $(this).hide();}); + $(plugin).slideDown(); $(hide).show(); $(this).hide();}); }) })