From 7d13ea434dba96e69195d74c338498f847e9fed3 Mon Sep 17 00:00:00 2001 From: artem Date: Wed, 5 Dec 2007 10:57:58 +0000 Subject: - added changes for better support Konqueror Browser (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5133 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/js/scrollbar.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'frontends/php/js/scrollbar.js') diff --git a/frontends/php/js/scrollbar.js b/frontends/php/js/scrollbar.js index 11277b96..ebe2138a 100644 --- a/frontends/php/js/scrollbar.js +++ b/frontends/php/js/scrollbar.js @@ -31,10 +31,7 @@ function scrollinit(x,y,w,period,stime,timel,bar_stime){ } w = w | 0; if(w == 0){ - var w = parseInt(document.body.scrollWidth) - 36; - var w2 = parseInt(document.body.offsetWidth) - 36; - - w = (w2 > w)?w2:w; + w=get_bodywidth() - 36; } scrollcreate(x,y,w); @@ -484,7 +481,7 @@ deselectall: function(){ if(IE){ document.selection.empty(); } - else{ + else if(!KQ){ var sel = window.getSelection(); sel.removeAllRanges(); } -- cgit