Jeremy Newman : remove old highlight code
Module: appdb Branch: master Commit: 5d1998b9ef1b55535c6119f978976e229b5e7fe1 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=5d1998b9ef1b55535c6119f97... Author: Jeremy Newman <jnewman(a)codeweavers.com> Date: Thu Nov 17 10:49:41 2016 -0600 remove old highlight code --- include/version.php | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/include/version.php b/include/version.php index 7dca7eb..8d0dd24 100644 --- a/include/version.php +++ b/include/version.php @@ -1231,13 +1231,8 @@ class version { echo html_frame_start("","98%","",0); $oTable = new Table(); - $oTable->SetWidth("100%"); - $oTable->SetBorder(0); - $oTable->SetCellPadding(3); - $oTable->SetCellSpacing(1); - + $oTable->SetClass('whq-table'); $oTableRow = new TableRow(); - $oTableRow->SetClass("color4"); $oTableCell = new TableCell("Version"); $oTableCell->SetWidth("80"); @@ -1270,33 +1265,15 @@ class version { if ($oVersion->sState == $oApp->objectGetState()) { - // set row color - $bgcolor = ($c % 2 == 0) ? "color0" : "color1"; - - $oTableRowHighlight = null; - // if we have a valid tested rating if($oVersion->sTestedRating && ($oVersion->sTestedRating != "/") && ($oVersion->sTestedRating != " ")) { $sClass = $oVersion->sTestedRating; - - $oInactiveColor = new Color(); - $oInactiveColor->SetColorByName($oVersion->sTestedRating); - - $oHighlightColor = GetHighlightColorFromInactiveColor($oInactiveColor); - - $oTableRowHighlight = new TableRowHighlight($oHighlightColor, $oInactiveColor); - } else - { - $sClass = $bgcolor; - - $oTableRowHighlight = GetStandardRowHighlight($c); } //display row $oTableRowClick = new TableRowClick($oVersion->objectMakeUrl()); - $oTableRowClick->SetHighlight($oTableRowHighlight); $oTableRow = new TableRow(); $oTableRow->SetRowClick($oTableRowClick); // make the row clickable
participants (1)
-
Jeremy Newman