From 037b696be0305febeae528113e87965112ee317f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 2 Aug 2020 12:05:52 -0400 Subject: [PATCH] Fix duplicate class attributes on navbar links --- web/skins/classic/includes/functions.php | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 133162d1e..0aa61e283 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -601,7 +601,7 @@ function getLogHTML() { } $logstate = logState(); $class = ($logstate == 'ok') ? 'text-success' : ($logstate == 'alert' ? 'text-warning' : (($logstate == 'alarm' ? 'text-danger' : ''))); - echo '').PHP_EOL; + echo ''.PHP_EOL; } } } @@ -615,29 +615,29 @@ function getDevicesHTML() { // Returns the html representing the Groups menu item function getGroupsHTML($view) { - $class = $view == 'groups' ? 'selected' : ''; - echo ''.PHP_EOL; + $class = $view == 'groups' ? ' selected' : ''; + echo ''.PHP_EOL; } // Returns the html representing the Filter menu item function getFilterHTML($view,$filterQuery,$sortQuery,$limitQuery) { - $class = $view == 'filter' ? 'selected' : ''; - echo ''.PHP_EOL; + $class = $view == 'filter' ? ' selected' : ''; + echo ''.PHP_EOL; } // Returns the html representing the Cycle menu item function getCycleHTML($view) { if ( canView('Stream') ) { - $class = $view == 'cycle' ? 'selected' : ''; - echo ''.PHP_EOL; + $class = $view == 'cycle' ? ' selected' : ''; + echo ''.PHP_EOL; } } // Returns the html representing the Montage menu item function getMontageHTML($view) { if ( canView('Stream') ) { - $class = $view == 'cycle' ? 'selected' : ''; - echo ''.PHP_EOL; + $class = $view == 'cycle' ? ' selected' : ''; + echo ''.PHP_EOL; } } @@ -659,16 +659,16 @@ function getMontageReviewHTML($view) { } } $live = isset($montageReviewQuery) ? '&fit=1'.$montageReviewQuery.'&live=0' : ''; - $class = $view == 'montagereview' ? 'selected' : ''; - echo ''.PHP_EOL; + $class = $view == 'montagereview' ? ' selected' : ''; + echo ''.PHP_EOL; } } // Returns the html representing the Audit Events Report menu item function getRprtEvntAuditHTML($view) { if ( canView('Events') ) { - $class = $view == 'report_event_audit' ? 'selected' : ''; - echo ''.PHP_EOL; + $class = $view == 'report_event_audit' ? ' selected' : ''; + echo ''.PHP_EOL; } }