X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fstatic%2Fjs%2Fplugin.js;h=c5a9de8033244f770475f90f79114fa61f8ae44c;hb=1415f72037ee4a0d5e54e75d15acabdd8a82c60c;hp=ae2164255e7fdf3b3bff86d5ca3c02fa4348a221;hpb=47ef14679f85c87ab2dcc8099969cd784ba1f479;p=unfold.git diff --git a/engine/static/js/plugin.js b/engine/static/js/plugin.js index ae216425..c5a9de80 100644 --- a/engine/static/js/plugin.js +++ b/engine/static/js/plugin.js @@ -4,13 +4,13 @@ $(document).ready(function() { $('.plugin-hide').each(function() { $(this).click(function () { - var plugin='#'+$(this).attr('id').replace('hide-','plugin-'); + var plugin='#'+$(this).attr('id').replace('hide-',''); var show='#'+$(this).attr('id').replace('hide-','show-'); jQuery(plugin).hide(); jQuery(show).show(); $(this).hide();}); }) $('.plugin-show').each(function() { $(this).click(function () { - var plugin='#'+$(this).attr('id').replace('show-','plugin-'); + var plugin='#'+$(this).attr('id').replace('show-',''); var hide='#'+$(this).attr('id').replace('show-','hide-'); jQuery(plugin).show(); jQuery(hide).show(); $(this).hide();}); })