summaryrefslogtreecommitdiffstats
path: root/frontends/php/js/sbox.js
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-12 15:26:10 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-12 15:26:10 +0000
commite0804e0b83b63f79b4d61c20d9cfece0f2ca0db1 (patch)
tree85492e5f0d2b084f70a03852bbda8de46be80728 /frontends/php/js/sbox.js
parentc0c1b50df1ec73e0cd6b72c7cc10197e6cc44a0a (diff)
downloadzabbix-e0804e0b83b63f79b4d61c20d9cfece0f2ca0db1.tar.gz
zabbix-e0804e0b83b63f79b4d61c20d9cfece0f2ca0db1.tar.xz
zabbix-e0804e0b83b63f79b4d61c20d9cfece0f2ca0db1.zip
- added adjusts for better support of Safari v.3 (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4997 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/js/sbox.js')
-rw-r--r--frontends/php/js/sbox.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/js/sbox.js b/frontends/php/js/sbox.js
index b693bff3..6325c480 100644
--- a/frontends/php/js/sbox.js
+++ b/frontends/php/js/sbox.js
@@ -149,13 +149,13 @@ create_box: function(){
this.dom_box.style.height = height+'px';
this.box.height = height;
- if(!IE){
- this.dom_box.addEventListener('mousemove',A_SBOX[this.sbox_id].sbox.mousemove.bindAsEventListener(A_SBOX[this.sbox_id].sbox),true);
- }
- else{
+ if(IE){
// this.dom_box.attachEvent('onmousemove',S_BOX.mousemove.bindAsEventListener(S_BOX));
this.dom_box.onmousemove = A_SBOX[this.sbox_id].sbox.mousemove.bind(A_SBOX[this.sbox_id].sbox);
}
+ else{
+ this.dom_box.addEventListener('mousemove',A_SBOX[this.sbox_id].sbox.mousemove.bindAsEventListener(A_SBOX[this.sbox_id].sbox),true);
+ }
this.start_event.top = this.mouse_event.top;
this.start_event.left = this.mouse_event.left;