Make Joomla's Debug Window Be Togglable


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(document).ready( function(){
  2.  
  3. $("#system-debug")
  4. .wrapInner("<div id=\"debugWrapper\"></div>")
  5. .prepend("<a href=\"javascript:;\" id=\"toggleDebug\">Toggle debug</a>");
  6.  
  7. $("#debugWrapper").hide();
  8. $("#toggleDebug").click(function(){
  9. $("#debugWrapper").toggle();
  10. });
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.