diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-12 09:42:46 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-12 09:42:46 +0000 |
| commit | c0529a72a421c43e903376c9c2661cf9b2e221d8 (patch) | |
| tree | c1597b558cb9a46961d204e9461d5c2a6eea59e6 /frontends/php/include/js.inc.php | |
| parent | 1e32b65c56449dba7140c470a2e18024a05063d4 (diff) | |
| download | zabbix-c0529a72a421c43e903376c9c2661cf9b2e221d8.tar.gz zabbix-c0529a72a421c43e903376c9c2661cf9b2e221d8.tar.xz zabbix-c0529a72a421c43e903376c9c2661cf9b2e221d8.zip | |
- [ZBX-208] html output parsing (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5164 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/js.inc.php')
| -rw-r--r-- | frontends/php/include/js.inc.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/frontends/php/include/js.inc.php b/frontends/php/include/js.inc.php index 2a59a364..f6d527f5 100644 --- a/frontends/php/include/js.inc.php +++ b/frontends/php/include/js.inc.php @@ -56,7 +56,7 @@ function zbx_add_post_js($script) function get_js_sizeable_graph($dom_graph_id,$url){ -return ' +return new CScript(' <script language="JavaScript" type="text/javascript"> <!-- A_SBOX["'.$dom_graph_id.'"] = new Object; @@ -71,14 +71,13 @@ return ' insert_sizeable_graph('.zbx_jsvalue($dom_graph_id).','.zbx_jsvalue($url).'); --> - </script> - '; + </script>'); } function get_dynamic_chart($dom_graph_id,$img_src,$width=0){ if(is_int($width) && $width > 0) $img_src.= url_param($width, false, 'width'); - $result = ' + $result = new CScript(' <script language="JavaScript" type="text/javascript"> <!-- var width = "'.((!(is_int($width) && $width > 0)) ? $width : '').'"; @@ -105,7 +104,7 @@ function get_dynamic_chart($dom_graph_id,$img_src,$width=0){ document.write(\'<img src="\'+img_src + width +\'" alt="chart" id="'.$dom_graph_id.'" />\'); --> - </script>'; + </script>'); return $result; } |
