Przeglądaj źródła

added table name in page title (TableAjax)

Piotr Labudda 10 lat temu
rodzic
commit
cb3c11514d
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 0 2
      SE/se-lib/SE_Layout.php
  2. 3 0
      SE/se-lib/TableAjax.php

+ 0 - 2
SE/se-lib/SE_Layout.php

@@ -11,8 +11,6 @@ class SE_Layout {
 			$host = substr($host, 6);
 		}
 
-		// TODO: add current table name
-
 		$title = "{$host}-SE";
 
 		return $title;

+ 3 - 0
SE/se-lib/TableAjax.php

@@ -3753,6 +3753,9 @@ function <?php echo $jsToogleFiltrProcesuFunctionName; ?>(n) {
 	});
 	return false;
 }
+		</script>
+		<script>
+document.title = '<?php echo $this->_acl->getRawLabel(100) . " - " . SE_Layout::getTitle(); ?>';
 		</script>
 		<?php
 		$out = ob_get_contents();