summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-23 14:25:15 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-23 14:25:15 +0000
commit4e6abd99187773a55101cb153bc33da324452494 (patch)
treef4ab9db0bfc57ba543dace329fe4844f0865cdb9 /frontends/php
parenteb821e44cd74bcf26ec65976f495a6c6d2fdd486 (diff)
- merged rev. 4642:4644 of branches/1.4/ (Artem) [fixes in JS for IE]
git-svn-id: svn://svn.zabbix.com/trunk@4645 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/js/common.js2
-rw-r--r--frontends/php/js/services.js10
2 files changed, 7 insertions, 5 deletions
diff --git a/frontends/php/js/common.js b/frontends/php/js/common.js
index 3cffa7ac..4819a096 100644
--- a/frontends/php/js/common.js
+++ b/frontends/php/js/common.js
@@ -226,7 +226,7 @@ function insert_sizeable_graph(url)
if(width) url += "&amp;width=" + (width - 108);
- document.write("<IMG SRC=\"" + url + "\">");
+ document.write('<img src="'+url+'" alt="graph">');
}
function resizeiframe(id){
diff --git a/frontends/php/js/services.js b/frontends/php/js/services.js
index 2d5cbb64..fb8b70ab 100644
--- a/frontends/php/js/services.js
+++ b/frontends/php/js/services.js
@@ -146,11 +146,13 @@ function remove_element(elmnt,tag){
function display_element(name){
var elmnt = document.getElementById(name);
- if(typeof(elmnt) == 'undefined'){
+ if(!isset(elmnt)){
return;
- }else if(elmnt.offsetWidth == 0){
- elmnt.style.display = (!IE || OP)?("table-row"):('block');
- }else {
+ }
+ else if((elmnt.offsetWidth == 0) || (elmnt.style.display == 'none')){
+ elmnt.style.display = IE?'block':'table-row';
+ }
+ else {
elmnt.style.display = 'none';
}
}