From 4c220daee80a863e20460950a2a49d29d5bc3075 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Wed, 10 Jan 2007 21:22:10 +0000 Subject: * added Ajax support to each *_tools.php page --- packages/freenas/www/disks_manage_tools.php | 151 +++++++++++++++++----------- 1 file changed, 92 insertions(+), 59 deletions(-) (limited to 'packages/freenas/www/disks_manage_tools.php') diff --git a/packages/freenas/www/disks_manage_tools.php b/packages/freenas/www/disks_manage_tools.php index 85de9ce8..01438dab 100644 --- a/packages/freenas/www/disks_manage_tools.php +++ b/packages/freenas/www/disks_manage_tools.php @@ -49,6 +49,81 @@ require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); +function create_cmd_output(&$action, &$a_disk, &$disk, &$partition, &$umount) { + $cmdout = CMDOUT_PARA; + + ob_end_flush(); + + $retvalue =<< " . gettext("The disk is currently mounted! The mount point will be removed temporary to perform selected command.") . "

"; + $retvalue .=<<