X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fstatic%2Fjs%2Fplugin_init.js;h=53f0aaf49f888b74f1e45ad37819b3d75b6e40f1;hb=d11e94a2a74792cd0b8c43a5cab904d34ed1e788;hp=c5a9de8033244f770475f90f79114fa61f8ae44c;hpb=a0677181fec7d781ed5b9551ed2a1f060dd24e49;p=unfold.git 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();}); }) })