X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fstatic%2Fjs%2Fplugin.js;h=c5a9de8033244f770475f90f79114fa61f8ae44c;hb=9b06313f8abbe19df1a706f328c66c07331c56ff;hp=7c22af6b5752b0ea89f88f7de95b774e294c09f6;hpb=b819c832cd3efe0a37966196430bcf3ec0aaf0cb;p=unfold.git diff --git a/engine/static/js/plugin.js b/engine/static/js/plugin.js index 7c22af6b..c5a9de80 100644 --- a/engine/static/js/plugin.js +++ b/engine/static/js/plugin.js @@ -2,19 +2,14 @@ * and configure their behaviour */ $(document).ready(function() { - window.console.log("Setting plugin toggle behaviour"); $('.plugin-hide').each(function() { - window.console.log("Setting plugin toggle behaviour on hide "+$(this).attr('id')); $(this).click(function () { - window.console.log("click on a HIDE button"); 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() { - window.console.log("Setting plugin toggle behaviour on show "+$(this).attr('id')); $(this).click(function () { - window.console.log("click on a SHOW button"); var plugin='#'+$(this).attr('id').replace('show-',''); var hide='#'+$(this).attr('id').replace('show-','hide-'); jQuery(plugin).show(); jQuery(hide).show(); $(this).hide();});