summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 730ec1b)
raw | patch | inline | side by side (parent: 730ec1b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Nov 2007 08:10:22 +0000 (08:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Nov 2007 08:10:22 +0000 (08:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7836 594d385d-05f5-0310-b6e9-bd551577e9d8
html/include/focus.js | patch | blob | history |
diff --git a/html/include/focus.js b/html/include/focus.js
index 471bdd02aaeb1ba7dad71877cd6a0ea095760c83..83d8ac49d42b648ed9144fc0730e38d3ee053e20 100644 (file)
--- a/html/include/focus.js
+++ b/html/include/focus.js
// Resize the Header cells (only the relative-width ones)
document.getElementById('t_scrollhead').style.width=div_width+"px";
}
- } else if(document.defaultView && document.getElementById("t_scrolltable_onlywidth") && document.getElementById('d_scrolltable_onlywidth')) {
+ } else if(document.defaultView && document.getElementById("t_scrolltable_onlywidth")){
// Resize the div
var div_width=parseInt(document.defaultView.getComputedStyle(document.getElementById("t_scrolltable_onlywidth"),"").getPropertyValue('width'));
var width= parseInt(window.innerWidth);
// window has been upscaled
if(div_width+diff>=600) {
- document.getElementById('d_scrollbody_onlywidth').style.width=div_width+diff+"px";
+ if(document.getElementById('d_scrollbody_onlywidth')){
+ document.getElementById('d_scrollbody_onlywidth').style.width=div_width+diff+"px";
+ }
document.getElementById('t_scrollbody_onlywidth').style.width=(div_width-19)+diff+"px";
// Resize the Header cells (only the relative-width ones)
} else if (width < 930) {
// Reset layout (set width to 600px)
div_width=600;
- document.getElementById('d_scrollbody_onlywidth').style.width=div_width+"px";
+ if(document.getElementById('d_scrollbody_onlywidth')){
+ document.getElementById('d_scrollbody_onlywidth').style.width=div_width+"px";
+ }
document.getElementById('t_scrollbody_onlywidth').style.width=(div_width-19)+"px";
// Resize the Header cells (only the relative-width ones)