From 95d045fcd76b09d84d1174f187faae863eb2fefb Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 5 Dec 2014 17:54:30 +0545 Subject: Set text and color of Gateways Widget Status getstats.php calls functions.inc.php get_stats(), which calls get_gatewaystats(). get_gatewaystats() now returns the text for each field and an optional color separated by "/" - "text/color" e.g. "Online/#90EE90" Parse the the new format, separating out text and color. If color is specified, then also set it with jQuery to css. --- usr/local/www/javascript/index/ajax.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr/local/www') diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 2fc6ab6..5b62e12 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -111,8 +111,12 @@ function updateGatewayStats(x){ if (widgetActive("gateways")){ gateways_split = x.split(","); for (var y=0; y