Code

Moved events into an extra file.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Nov 2007 06:24:03 +0000 (06:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Nov 2007 06:24:03 +0000 (06:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7831 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/events.js [new file with mode: 0644]
html/include/focus.js
html/include/layersmenu.js

diff --git a/html/include/events.js b/html/include/events.js
new file mode 100644 (file)
index 0000000..0aa8120
--- /dev/null
@@ -0,0 +1,20 @@
+window.onload          = OnLoad;
+window.onresize        = OnResize;
+window.onkeypress      = OnKeyPress;
+
+function OnKeyPress()
+{
+       keyPress();
+}
+
+function OnLoad()
+{
+       adjust();
+       loadHandler();
+}
+
+function OnResize()
+{
+       adjust();
+       resizeHandler();
+}
index 29003ea5b62fb2800c0497bcf01686d0b415bbe5..a16220c577af26051a75af9a6b3ed0f431111648 100644 (file)
@@ -293,9 +293,6 @@ function divtoggle(element) {
        }
 }
 
-window.onload = adjust;
-window.onresize = adjust;
-
 function adjust (e) {
        adjust_height(e);
        adjust_width(e);
index 6438a89c9f28a6f58a08c8a896dbdf286e46d3fc..f4302e7caa300dc5a8cb6e81084e66982f8434f5 100644 (file)
@@ -280,9 +280,7 @@ function resizeHandler()
        }
 //     moveLayers();
        layersMoved = 0;
-       adjust();
 }
-window.onresize = resizeHandler;
 
 function yaresizeHandler()
 {
@@ -304,7 +302,6 @@ function loadHandler()
                yaresizeHandler();
        }
 }
-window.onload = loadHandler;
 
 function fixieflm(menuName)
 {