From 2386990d80ee2c94d907491e002a1cfb808525d8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 11 Jul 2010 23:00:24 -0400 Subject: Add a Close button option for notices that have appeared as long as the save button has not been set --- usr/local/www/guiconfig.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 1803f36..fc39166 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -302,6 +302,10 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { eval($toeval); } + if(!$savebutton) { + $savebutton = ''; + } + echo << @@ -319,6 +323,9 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { +
+

+

@@ -327,15 +334,12 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { Rounded("div#redbox","all","#FFF","{$nifty_redbox}","smooth"); Rounded("td#blackbox","all","#FFF","{$nifty_blackbox}","smooth"); -
EOFnp; } function print_info_box($msg) { - echo "

"; print_info_box_np($msg); - echo "

"; } function get_std_save_message($ok) { -- cgit v1.1