2
0

cms.debug.php 916 B

123456789101112131415161718192021222324
  1. <script>
  2. $(document).ready(function() {
  3. $('#checkIsSubmit').on('change', function() {
  4. window.location.href = '/submit.php?from=parametres-debug-submit-activation&actif=' + $('#checkIsSubmit').prop('checked');
  5. });
  6. $('#checkIsSql').on('change', function() {
  7. window.location.href = '/submit.php?from=parametres-debug-sql-activation&actif=' + $('#checkIsSql').prop('checked');
  8. });
  9. $('.toggle-logs').click(function() {
  10. $('#debugger-logs').slideToggle();
  11. });
  12. // Apply syntax highlighting to log entries
  13. $('.log-entry').each(function() {
  14. var html = $(this).html();
  15. html = html.replace(/(\\$\\w+)/g, '<span class=\"variable\">$1</span>');
  16. html = html.replace(/(\\bfunction\\b)/g, '<span class=\"function\">$1</span>');
  17. $(this).html(html);
  18. });
  19. });
  20. </script>