From 12e37a20ee3714b18194f1c0154799bedb03192c Mon Sep 17 00:00:00 2001 From: Louis Bailleul Date: Fri, 20 Nov 2015 14:47:59 +0000 Subject: [PATCH] Fix syntax --- html/includes/print-graphrow.inc.php | 3 ++- html/js/librenms.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html/includes/print-graphrow.inc.php b/html/includes/print-graphrow.inc.php index 362e2a5433..e37cd3125a 100644 --- a/html/includes/print-graphrow.inc.php +++ b/html/includes/print-graphrow.inc.php @@ -40,7 +40,8 @@ else { if($_SESSION['screen_width']) { if($_SESSION['screen_width'] >= 800) { $graph_array['width'] = ($_SESSION['screen_width'] - 420 )/count($periods)+1; - }else { + } + else { $graph_array['width'] = $_SESSION['screen_width'] - 155; } } diff --git a/html/js/librenms.js b/html/js/librenms.js index 2c4cee311a..71f017d242 100644 --- a/html/js/librenms.js +++ b/html/js/librenms.js @@ -157,7 +157,8 @@ $(document).on("click", '.collapse-neighbors', function(event) if(button.hasClass("glyphicon-plus")) { button.addClass('glyphicon-minus').removeClass('glyphicon-plus'); - }else { + } + else { button.addClass('glyphicon-plus').removeClass('glyphicon-minus'); }