Code

Don't adjust height of divlists if force_height is true.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jun 2006 06:45:43 +0000 (06:45 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jun 2006 06:45:43 +0000 (06:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3620 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js
ihtml/themes/default/framework.tpl

index ccee6a47da5c4b46636377b8e5a2cc5c96ed91ef..c1c6c6870e62eedf8e8e72c36ad0665be456cea8 100644 (file)
@@ -195,13 +195,8 @@ function js_check(form) {
        form.javascript.value = 'true';
 }
 
-window.onload = adjust;
-window.onresize = adjust;
-
-function adjust(e) {
-       adjust_height(e);
-       adjust_width(e);
-}
+window.onload = adjust_width;
+window.onresize = adjust_width;
 
 // Automatic resize (height) of divlists
 function adjust_height(e) {
index f51784b56461c7754e611e427150c6147013d228..1c9bb7af6aee78142febf44d1ca3f38e02e71a60 100644 (file)
@@ -1,4 +1,12 @@
 <!-- Headline -->
+<!--
+{if !$force_height}
+<script language="javascript">
+  window.onload = adjust_height;
+  window.onresize = adjust_height;
+</script>
+{/if}
+-->
 <body>
 {$php_errors}
 <form action='main.php{$plug}' name='mainform' method='post' enctype='multipart/form-data'>