Browse Source

removed hidden-dbg

Piotr Labudda 7 năm trước cách đây
mục cha
commit
d7ee5fbc08
3 tập tin đã thay đổi với 1 bổ sung17 xóa
  1. 1 5
      SE/se-lib/UI.php
  2. 0 10
      SE/se-lib/tmpl/_layout_gora.php
  3. 0 2
      SE/static/p5UI/main.css

+ 1 - 5
SE/se-lib/UI.php

@@ -73,11 +73,7 @@ class UI {
 		include APP_PATH_LIB . "/tmpl/{$tmplName}.php";
 	}
 
-	public static function hotKeyDBG($str) {
-		if (User::hasAccess('dbg')) {
-			echo '<span class="hidden-dbg">' . htmlspecialchars($str) . '</span>';
-		}
-	}
+	public static function hotKeyDBG($str) {}
 
 	public static function showMessagesForTable($tblName) {
 		if (empty($tblName)) return;

+ 0 - 10
SE/se-lib/tmpl/_layout_gora.php

@@ -57,14 +57,4 @@
 	]);
 	UI::hButtonAjaxJsFunction();
 ?>
-<?php if (User::hasAccess('dbg')) : ?>
-	<script>
-jQuery(document).bind('keydown', 'alt+shift+`', function(){
-	jQuery(document.body).addClass('show-hidden-dbg');
-});
-jQuery(document).bind('keyup', 'alt+shift+`', function(){
-	jQuery(document.body).removeClass('show-hidden-dbg');
-});
-	</script>
-<?php endif; ?>
 </head><body>

+ 0 - 2
SE/static/p5UI/main.css

@@ -47,5 +47,3 @@ body { <?php echo UI::fixFooterPosition('body_style'); ?> }
 
 caption { font-size:medium }
 
-.hidden-dbg { display:none; color:silver; }
-.show-hidden-dbg .hidden-dbg { display:inline; }