Explorar o código

added table name in page title (TableAjax)

Piotr Labudda %!s(int64=10) %!d(string=hai) anos
pai
achega
cb3c11514d
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  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();