diff options
Diffstat (limited to 'src/usr/local/www/widgets')
5 files changed, 11 insertions, 11 deletions
diff --git a/src/usr/local/www/widgets/javascript/thermal_sensors.js b/src/usr/local/www/widgets/javascript/thermal_sensors.js index 83aac7d..bbb7e9a 100644 --- a/src/usr/local/www/widgets/javascript/thermal_sensors.js +++ b/src/usr/local/www/widgets/javascript/thermal_sensors.js @@ -24,7 +24,7 @@ ajaxBusy = false; //should be called from "thermal_sensors.widget.php" function showThermalSensorsData() { - if(!ajaxBusy) { + if (!ajaxBusy) { ajaxBusy = true; //get data from thermal_sensors.widget.php url = "/widgets/widgets/thermal_sensors.widget.php?getThermalSensorsData=1" @@ -54,7 +54,7 @@ function buildThermalSensorsData(thermalSensorsData) { if (thermal_sensors_widget_showRawOutput) { buildThermalSensorsDataRaw(thermalSensorsData); } else { - if(warningTemp == 9999) { + if (warningTemp == 9999) { buildThermalSensorsDataGraph(thermalSensorsData); } @@ -192,11 +192,11 @@ function getThermalSensorValue(stringValue) { function setTempProgress(bar, percent) { var barTempL, barTempM, barTempH; - if(percent <= warningTemp) { + if (percent <= warningTemp) { barTempL = percent; barTempM = 0; barTempH = 0; - } else if(percent <= criticalTemp) { + } else if (percent <= criticalTemp) { barTempL = warningTemp; barTempM = percent - warningTemp; barTempH = 0; diff --git a/src/usr/local/www/widgets/widgets/gmirror_status.widget.php b/src/usr/local/www/widgets/widgets/gmirror_status.widget.php index 2eed5c4..6c3380b 100644 --- a/src/usr/local/www/widgets/widgets/gmirror_status.widget.php +++ b/src/usr/local/www/widgets/widgets/gmirror_status.widget.php @@ -35,7 +35,7 @@ require_once("gmirror.inc"); <script type="text/javascript"> //<![CDATA[ -function gmirrorStatusUpdateFromServer(){ +function gmirrorStatusUpdateFromServer() { $.ajax({ type: 'get', url: '/widgets/widgets/gmirror_status.widget.php', diff --git a/src/usr/local/www/widgets/widgets/log.widget.php b/src/usr/local/www/widgets/widgets/log.widget.php index 7312f08..fab878f 100644 --- a/src/usr/local/www/widgets/widgets/log.widget.php +++ b/src/usr/local/www/widgets/widgets/log.widget.php @@ -175,7 +175,7 @@ if (isset($_GET['lastsawtime'])) { <script type="text/javascript"> //<![CDATA[ -function logWidgetUpdateFromServer(){ +function logWidgetUpdateFromServer() { $.ajax({ type: 'get', url: '/widgets/widgets/log.widget.php', diff --git a/src/usr/local/www/widgets/widgets/ntp_status.widget.php b/src/usr/local/www/widgets/widgets/ntp_status.widget.php index 7f283bc..c0d8384 100644 --- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php +++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php @@ -191,7 +191,7 @@ if ($_REQUEST['updateme']) { ?> <script type="text/javascript"> //<![CDATA[ -function ntpWidgetUpdateFromServer(){ +function ntpWidgetUpdateFromServer() { $.ajax({ type: 'get', url: '/widgets/widgets/ntp_status.widget.php', @@ -207,7 +207,7 @@ function ntpWidgetUpdateFromServer(){ }); } -function ntpWidgetUpdateDisplay(){ +function ntpWidgetUpdateDisplay() { // Javascript handles overflowing ntpServerTime.setSeconds(ntpServerTime.getSeconds()+1); diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index 15ed36b..1512e85 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -166,7 +166,7 @@ $filesystems = get_mounted_filesystems(); <ul style="margin-bottom:0px"> <?php $dns_servers = get_dns_servers(); - foreach($dns_servers as $dns) { + foreach ($dns_servers as $dns) { echo "<li>{$dns}</li>"; } ?> @@ -338,7 +338,7 @@ function setTimer() { function stats(x) { var values = x.split("|"); - if ($.each(values,function(key,value){ + if ($.each(values,function(key,value) { if (value == 'undefined' || value == null) return true; else @@ -470,7 +470,7 @@ function updateInterfaces(x) { } else { ipv4_details = details[2] + '<br />'; } - switch(details[1]) { + switch (details[1]) { case "up": $('#' + details[0] + '-up').css("display","inline"); $('#' + details[0] + '-down').css("display","none"); |