ソースを参照

Maj click debug submit

stany.ferer 1 年間 前
コミット
d54c38d0da
2 ファイル変更3 行追加3 行削除
  1. 1 1
      core/class/debug.class.php
  2. 2 2
      core/views/_cms.nav.php

+ 1 - 1
core/class/debug.class.php

@@ -186,7 +186,7 @@ class debug
                         window.location.href = '/submit.php?from=parametres-debug-submit-activation&actif=' + $('#checkIsSubmit').prop('checked');
                     });
             
-                    $('#toggle-logs').click(function() {
+                    $('.toggle-logs').click(function() {
                         $('#debugger-logs').slideToggle();
                     });
 

+ 2 - 2
core/views/_cms.nav.php

@@ -21,13 +21,13 @@
     }
 
     if(core::isDebug()){
-        $titleDebug = "<a href=\"#\" id='toggle-logs'><span class=\"badge\" style=\"background-color:red; margin-left:5px;\">MODE DEBUG</span></a>";
+        $titleDebug = "<a href=\"#\"><span class=\"badge toggle-logs\" style=\"background-color:red; margin-left:5px;\">MODE DEBUG</span></a>";
     } else {
         $titleDebug = "";
     }
 
     if(debug::isSubmit()){
-        $titleDebugSubmit = "<a href=\"#\" id='toggle-logs'><span class=\"badge\" style=\"background-color:red; margin-left:5px;\">MODE DEBUG SUBMIT</span></a>";
+        $titleDebugSubmit = "<a href=\"#\"><span class=\"badge toggle-logs\" style=\"background-color:red; margin-left:5px;\">MODE DEBUG SUBMIT</span></a>";
     } else {
         $titleDebugSubmit = "";
     }