From 94704bc642bf549ccffddf3ccca03bccef302178 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 17 Dec 2015 07:16:17 +0545 Subject: Code style index.php Couple of little bits here. --- src/usr/local/www/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/usr') diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 71de36f..214f129 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -263,8 +263,9 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") { // be backwards compatible $offset = strpos($file, '-container'); - if (false !== $offset) + if (false !== $offset) { $file = substr($file, 0, $offset); + } // Get the widget title that should be in a var defined in the widget's inc file. $widgettitle = ${$file . '_title'}; @@ -380,11 +381,11 @@ foreach ($widgets as $widgetname => $widgetconfig) { '; //if col$i exists - if(isset($widgetColumns['col'.$i])) { + if (isset($widgetColumns['col'.$i])) { $columnWidgets = $widgetColumns['col'.$i]; @@ -438,7 +439,7 @@ function updateWidgets(newWidget) { $('.panel', col).each(function(idx, widget) { var isOpen = $('.panel-body', widget).hasClass('in'); - sequence += widget.id.split('-')[1] +':'+ col.id.split('-')[1] +':'+ (isOpen ? 'open' : 'close') +','; + sequence += widget.id.split('-')[1] + ':' + col.id.split('-')[1] + ':' + (isOpen ? 'open' : 'close') + ','; }); }); -- cgit v1.1