From a4ab3d4d3600c5b97fb5a4f7b8b84f7e95d60782 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Sat, 13 Jan 2007 20:39:27 +0000 Subject: * fix: process save message via Ajax --- packages/freenas/www/services_nfs.php | 4 ++++ packages/freenas/www/services_rsyncd.php | 4 ++++ packages/freenas/www/services_rsyncd_client.php | 4 ++++ packages/freenas/www/services_rsyncd_local.php | 4 ++++ packages/freenas/www/services_samba.php | 4 ++++ packages/freenas/www/services_unison.php | 4 ++++ 6 files changed, 24 insertions(+) (limited to 'packages/freenas') diff --git a/packages/freenas/www/services_nfs.php b/packages/freenas/www/services_nfs.php index 70351bf1..092f71a6 100644 --- a/packages/freenas/www/services_nfs.php +++ b/packages/freenas/www/services_nfs.php @@ -115,6 +115,10 @@ if (! empty($_POST)) } } +/* if ajax is calling, give them an update message */ +if(isAjax()) + print_info_box_np($savemsg); + include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ diff --git a/packages/freenas/www/services_rsyncd.php b/packages/freenas/www/services_rsyncd.php index e95cbb8c..a31aa229 100644 --- a/packages/freenas/www/services_rsyncd.php +++ b/packages/freenas/www/services_rsyncd.php @@ -130,6 +130,10 @@ if (! empty($_POST)) } } +/* if ajax is calling, give them an update message */ +if(isAjax()) + print_info_box_np($savemsg); + include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ diff --git a/packages/freenas/www/services_rsyncd_client.php b/packages/freenas/www/services_rsyncd_client.php index 4356ea94..efb0e870 100644 --- a/packages/freenas/www/services_rsyncd_client.php +++ b/packages/freenas/www/services_rsyncd_client.php @@ -198,6 +198,10 @@ if (!is_array($freenas_config['mounts']['mount'])) { } } +/* if ajax is calling, give them an update message */ +if(isAjax()) + print_info_box_np($savemsg); + include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ diff --git a/packages/freenas/www/services_rsyncd_local.php b/packages/freenas/www/services_rsyncd_local.php index 3838ac72..df29961a 100644 --- a/packages/freenas/www/services_rsyncd_local.php +++ b/packages/freenas/www/services_rsyncd_local.php @@ -183,6 +183,10 @@ if (!is_array($freenas_config['mounts']['mount'])) { } } +/* if ajax is calling, give them an update message */ +if(isAjax()) + print_info_box_np($savemsg); + include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ diff --git a/packages/freenas/www/services_samba.php b/packages/freenas/www/services_samba.php index 835814b2..06a0291d 100644 --- a/packages/freenas/www/services_samba.php +++ b/packages/freenas/www/services_samba.php @@ -157,6 +157,10 @@ if (! empty($_POST)) } } +/* if ajax is calling, give them an update message */ +if(isAjax()) + print_info_box_np($savemsg); + include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ diff --git a/packages/freenas/www/services_unison.php b/packages/freenas/www/services_unison.php index 25425fdd..eec58865 100644 --- a/packages/freenas/www/services_unison.php +++ b/packages/freenas/www/services_unison.php @@ -142,6 +142,10 @@ mount_sort(); $a_mount = &$freenas_config['mounts']['mount']; +/* if ajax is calling, give them an update message */ +if(isAjax()) + print_info_box_np($savemsg); + include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ -- cgit v1.2.3