diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-06 14:10:00 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-06 14:10:00 +0000 |
commit | 3717298e74ed9ce0d6a105f919532284dd97262a (patch) | |
tree | 06573051a08e96c40b7098e4e75d0e3de65bbc22 /frontends/php/sysmap.php | |
parent | d26c5539a6427c880c9a24903342c1342a032556 (diff) | |
download | zabbix-3717298e74ed9ce0d6a105f919532284dd97262a.tar.gz zabbix-3717298e74ed9ce0d6a105f919532284dd97262a.tar.xz zabbix-3717298e74ed9ce0d6a105f919532284dd97262a.zip |
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@2608 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r-- | frontends/php/sysmap.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index c7794515..22d06f31 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -50,6 +50,7 @@ $_REQUEST["label"],$_REQUEST["x"],$_REQUEST["y"],$_REQUEST["icon"], $_REQUEST["url"],$_REQUEST["icon_on"]); show_messages($result,"Host added","Cannot add host"); + if($result) unset($_REQUEST["form"]); } if($_REQUEST["register"]=="update") { @@ -57,6 +58,7 @@ $_REQUEST["hostid"],$_REQUEST["label"],$_REQUEST["x"],$_REQUEST["y"], $_REQUEST["icon"],$_REQUEST["url"],$_REQUEST["icon_on"]); show_messages($result,"Host updated","Cannot update host"); + if($result) unset($_REQUEST["form"]); } if($_REQUEST["register"]=="add link") { @@ -64,6 +66,7 @@ $_REQUEST["triggerid"], $_REQUEST["drawtype_off"],$_REQUEST["color_off"], $_REQUEST["drawtype_on"],$_REQUEST["color_on"]); show_messages($result,"Link added","Cannot add link"); + if($result) unset($_REQUEST["form"]); } if($_REQUEST["register"]=="delete_link") { @@ -75,7 +78,7 @@ { $result=delete_sysmaps_host($_REQUEST["shostid"]); show_messages($result,"Host deleted","Cannot delete host"); - unset($_REQUEST["shostid"]); + if($result) unset($_REQUEST["form"]); } } ?> |