diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-07-11 23:00:24 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-07-11 23:00:24 -0400 |
commit | 2386990d80ee2c94d907491e002a1cfb808525d8 (patch) | |
tree | 10a5644815f4f8ed252ba50b0d84e83da9610e4d /usr/local/www/guiconfig.inc | |
parent | df2221631758b6c281258711912998eb336dc958 (diff) | |
download | pfsense-2386990d80ee2c94d907491e002a1cfb808525d8.zip pfsense-2386990d80ee2c94d907491e002a1cfb808525d8.tar.gz |
Add a Close button option for notices that have appeared as long as the save button has not been set
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 10 |
1 files changed, 7 insertions, 3 deletions
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 = '<td class="infoboxsave"><input value="Close" type="button" onClick="$(\'redboxtable\').hide();"></td>'; + } + echo <<<EOFnp <table class='infobox' id='redboxtable'> <tr> @@ -319,6 +323,9 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") { </tr> </table> </div> + <div> + <p/> + </div> </td> </tr> </table> @@ -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"); </script> - <br/> EOFnp; } function print_info_box($msg) { - echo "<p>"; print_info_box_np($msg); - echo "</p>"; } function get_std_save_message($ok) { |