From f31489e5b67f1f0620ed839dc393f7954ffe7840 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 14 Jul 2010 17:36:26 -0400 Subject: Allow overriding the Nifty corners background color --- usr/local/www/guiconfig.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'usr') diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index e27b78b..8680c97 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -278,8 +278,12 @@ function verify_gzip_file($fname) { } function print_info_box_np($msg, $name="apply",$value="Apply changes") { - global $g; - + global $g, $nifty_redbox, $nifty_blackbox, $nifty_background; + + // Set the Nifty background color if one is not set already (defaults to white) + if(!$nifty_background) + $nifty_background = "#FFF"; + if(stristr($msg, "apply") != false || stristr($msg, "save") != false || stristr($msg, "create") != false) { $savebutton = ""; $savebutton .= ""; @@ -331,8 +335,8 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { EOFnp; -- cgit v1.1