Просмотр исходного кода

Fixed server info/controls not showing when expanding via address/owner column

I encountered an issue on Ubuntu 18.04 panel version d0c4f2b386cdc1e1172f899f56f5567eb02ff2ef (tested on Chrome, Firefox, and Internet Explorer) where the server's info and start/stop controls wouldn't show up when expanding the collapsible accordion by clicking on the address/owner columns. The info and controls would show up when clicking on the server name column. This change fixes that issue.
Jonathan Droogh 6 лет назад
Родитель
Сommit
c6a7d9bec2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      modules/gamemanager/server_monitor.php

+ 2 - 2
modules/gamemanager/server_monitor.php

@@ -497,8 +497,8 @@ function exec_ogp_module() {
 				$first .= "<td class='collapsible sortHandle'>" . "<span class='hidden'>$mod</span><img src='$icon_path' />" . "</td>";
 				$first .= "<td class='collapsible serverId hide sortHandle'>" . $server_home["home_id"] . "</td>";
 				$first .= "<td class='collapsible serverName ignoreSortable' data-status='$status' data-pos='$pos'><b>" . htmlentities($server_home['home_name']) . "</b>$mod_name</td>";
-				$first .= "<td class='collapsible serverIPAddress ignoreSortable'>" . $address . "</td>";
-				$first .= "<td class='owner collapsible serverOwner ignoreSortable'>" . $user['users_login'] . "</td>";
+				$first .= "<td class='collapsible serverIPAddress ignoreSortable' data-status='$status' data-pos='$pos'>" . $address . "</td>";
+				$first .= "<td class='owner collapsible serverOwner ignoreSortable' data-status='$status' data-pos='$pos'>" . $user['users_login'] . "</td>";
 				$first .= "<td style='width:328px;padding:0px;'>$ctrlChkBoxes</td>";
 			$first .= "</tr>";