Module: check_mk
Branch: master
Commit: 262a3a61af2f6560e2bf8ac4ad552512e8cf2830
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=262a3a61af2f65…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 27 15:15:49 2010 +0100
Removed unneeded IE workarounds - fixed by setting correct doctype
---
web/htdocs/js/sidebar.js | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 7b60bb2..b2719e8 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -148,8 +148,8 @@ function snapinDrag(event) {
// Drag the snapin
snapinDragging.style.position = 'absolute';
var newTop = event.clientY - snapinOffset[0] - snapinScrollTop;
- if (weAreIEF__k)
- newTop += document.getElementById('side_content').scrollTop;
+ /*if (weAreIEF__k)
+ newTop += document.getElementById('side_content').scrollTop;*/
snapinDragging.style.top = newTop + 'px';
snapinDragging.style.left = (event.clientX - snapinOffset[1]) + 'px';
snapinDragging.style.width = '175px';
@@ -277,9 +277,7 @@ function getSnapinList() {
}
function getSnapinCoords(obj) {
- var snapinTop = snapinDragging.offsetTop;
- if (!weAreIEF__k)
- snapinTop += document.getElementById('side_content').scrollTop;
+ var snapinTop = snapinDragging.offsetTop +
document.getElementById('side_content').scrollTop;
var bottomOffset = obj.offsetTop + obj.clientHeight - snapinTop;
if (bottomOffset < 0)
@@ -376,9 +374,6 @@ function setSidebarHeight() {
if(height == 0)
return;
- /*if (weAreIEF__k)
- oContent.style.height = (height - oFooter.clientHeight + 5) + 'px';
- else*/
oContent.style.height = (height - oHeader.clientHeight - oFooter.clientHeight - 5) +
'px';
oFooter = null;