diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-07-18 11:13:47 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-07-18 11:13:47 +0000 |
commit | e0b858a23a2e2d626d6cc4940cce064ad8d2c979 (patch) | |
tree | 294a9cdddb5ec5cad3aa309a6b715ea439f49c19 /frontends | |
parent | d5ab62f761aa744402aac799c894dad15e3fa68a (diff) | |
download | zabbix-e0b858a23a2e2d626d6cc4940cce064ad8d2c979.tar.gz zabbix-e0b858a23a2e2d626d6cc4940cce064ad8d2c979.tar.xz zabbix-e0b858a23a2e2d626d6cc4940cce064ad8d2c979.zip |
- [DEV-137] js fixes (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5835 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/php/chart7.php | 3 | ||||
-rw-r--r-- | frontends/php/charts.php | 3 | ||||
-rw-r--r-- | frontends/php/js/sbinit.js | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/frontends/php/chart7.php b/frontends/php/chart7.php index 883b1180..39872d31 100644 --- a/frontends/php/chart7.php +++ b/frontends/php/chart7.php @@ -92,8 +92,7 @@ include_once "include/page_header.php"; $graph->SetWidth(get_request("width", 400)); $graph->SetHeight(get_request("height", 300)); - foreach($items as $id => $gitem) - { + foreach($items as $id => $gitem){ // SDI($gitem); $graph->AddItem( $gitem["itemid"], diff --git a/frontends/php/charts.php b/frontends/php/charts.php index e729deb1..b6bd8b20 100644 --- a/frontends/php/charts.php +++ b/frontends/php/charts.php @@ -382,8 +382,7 @@ include_once 'include/page_header.php'; $table->Show(); echo SBR; - if($_REQUEST['graphid'] > 0) - { + if($_REQUEST['graphid'] > 0){ // NAV BAR $stime = get_min_itemclock_by_graphid($_REQUEST['graphid']); $stime = (is_null($stime))?0:$stime; diff --git a/frontends/php/js/sbinit.js b/frontends/php/js/sbinit.js index b0b411cf..b326b2a0 100644 --- a/frontends/php/js/sbinit.js +++ b/frontends/php/js/sbinit.js @@ -178,8 +178,10 @@ function graphload(dom_objects,unix_stime,period,dynamic){ continue; } // SBOX - A_SBOX[dom_objects[i].id].sbox.obj.stime = unix_stime; - A_SBOX[dom_objects[i].id].sbox.obj.period = period; + if('undefined' != typeof(A_SBOX[dom_objects[i].id])){ + A_SBOX[dom_objects[i].id].sbox.obj.stime = unix_stime; + A_SBOX[dom_objects[i].id].sbox.obj.period = period; + } //------ //SCROLL_BAR SCROLL_BAR.initialize(SCROLL_BAR.starttime,period,unix_stime,0) |