diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-03 01:52:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-03 01:52:35 +0000 |
commit | 541207da6466dde836d2e48d13b7531cc83d33da (patch) | |
tree | ea4bc73111eb551609df9e5ea67a5a22f6ecd9d3 /usr/local/www/guiconfig.inc | |
parent | a0509c58f48a03a582abb92150900d3543d11e3b (diff) | |
download | pfsense-541207da6466dde836d2e48d13b7531cc83d33da.zip pfsense-541207da6466dde836d2e48d13b7531cc83d33da.tar.gz |
Only show apply changes button if apply is in the message.
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 788040b..6be27e1 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -186,9 +186,11 @@ function print_info_box_np($msg) { echo " </td>\n"; echo " <td width='70%'><font color='white'><b>{$msg}</b></font>\n"; echo " </td>"; - echo " <td>"; - echo " <input name=\"apply\" type=\"submit\" class=\"formbtn\" id=\"apply\" value=\"Apply changes\">\n"; - echo " </td>"; + if(stristr($msg, "apply") == true) { + echo " <td>"; + echo " <input name=\"apply\" type=\"submit\" class=\"formbtn\" id=\"apply\" value=\"Apply changes\">\n"; + echo " </td>"; + } echo " </tr></table>\n"; echo " </div>\n"; echo " </td>\n"; |