summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-30 12:40:42 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-30 12:40:42 +0000
commit527da18d12fc32d48858acd51e934ef57ab294fb (patch)
tree118903541cb2a0ae3bdf5f30b927d1c3ae203782 /frontends/php/include/config.inc.php
parent936ff51ecc479199146600c12f5ef3a1e6977c35 (diff)
- [DEV-191] fixes to inline update in "Latest Data" screen (Artem)
- [DEV-137] improvements in HTML validation (Artem) - [DEV-137] fixes in SQL constructions for MySQL (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5853 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 31e737d3..b220d6ae 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1276,10 +1276,10 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
$url='?';
$url_params = explode('&',$_SERVER['QUERY_STRING']);
foreach($url_params as $id => $param){
- if(empty($param)) continue;
+ if(zbx_empty($param)) continue;
list($name,$value) = explode('=',$param);
- if(empty($name) || ($name == 'sort') || (($name == 'sortorder'))) continue;
+ if(zbx_empty($name) || ($name == 'sort') || (($name == 'sortorder'))) continue;
$url.=$param.'&';
}
}
@@ -1287,7 +1287,14 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
$url.='&';
}
- $link = new CLink($obj,$url.'sort='.$tabfield.'&sortorder='.$sortorder);
+ $url.='sort='.$tabfield.'&sortorder='.$sortorder;
+
+ if(($page['type'] != PAGE_TYPE_HTML) && defined('ZBX_PAGE_MAIN_HAT')){
+ $link = new CLink($obj,$url,null,"javascript: return updater.onetime_update('".ZBX_PAGE_MAIN_HAT."','".$url."');");
+ }
+ else{
+ $link = new CLink($obj,$url);
+ }
if(isset($_REQUEST['sort']) && ($tabfield == $_REQUEST['sort'])){
if($sortorder == ZBX_SORT_UP){