diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-23 08:07:46 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-23 08:07:46 +0000 |
| commit | c1a98b2f571abfa8e97ddfc15cb08de23f975e8f (patch) | |
| tree | 509dc064ac2c0df5a340a0b59a981c855256d9cb /frontends/php/tr_status.php | |
| parent | 79dd200e7a1b6802794be3be46099bb2a1083537 (diff) | |
- [DEV-48] merged rev. 4898:4900 of branches/1.4.j/ (Artem) [minor fixes]
git-svn-id: svn://svn.zabbix.com/trunk@4901 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_status.php')
| -rw-r--r-- | frontends/php/tr_status.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php index 500700b0..f586df6a 100644 --- a/frontends/php/tr_status.php +++ b/frontends/php/tr_status.php @@ -485,9 +485,11 @@ include_once "include/page_header.php"; $host = null; if($_REQUEST['hostid'] < 1){ $menus = ''; + foreach($scripts_by_hosts[$row['hostid']] as $id => $script){ $menus.= "['".$script['name']."',\"javascript: openWinCentered('scripts_exec.php?execute=1&hostid=".$row['hostid']."&scriptid=".$script['scriptid']."','".S_TOOLS."',760,540,'titlebar=no, resizable=yes, scrollbars=yes, dialog=no');\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],"; } + $menus = trim($menus,','); if(!empty($menus)) $menus="show_popup_menu(event,[[".zbx_jsvalue(S_TOOLS).",null,null,{'outer' : ['pum_oheader'],'inner' : ['pum_iheader']}],".$menus."],180);"; |
