X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fstatic%2Fjs%2Fplugin.js;h=7c22af6b5752b0ea89f88f7de95b774e294c09f6;hb=66436ea5f233988ad910e114864b163d2fcbf5e2;hp=c5a9de8033244f770475f90f79114fa61f8ae44c;hpb=2ee87efb920392a07bc3511ecf503871997c0dbb;p=unfold.git diff --git a/engine/static/js/plugin.js b/engine/static/js/plugin.js index c5a9de80..7c22af6b 100644 --- a/engine/static/js/plugin.js +++ b/engine/static/js/plugin.js @@ -2,14 +2,19 @@ * 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();});