From: hickert Date: Wed, 21 Nov 2007 06:24:03 +0000 (+0000) Subject: Moved events into an extra file. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa64d91c3b51a232fe8bd1c8e112cadd8f8f1245;p=gosa.git Moved events into an extra file. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7831 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/include/events.js b/html/include/events.js new file mode 100644 index 000000000..0aa812062 --- /dev/null +++ b/html/include/events.js @@ -0,0 +1,20 @@ +window.onload = OnLoad; +window.onresize = OnResize; +window.onkeypress = OnKeyPress; + +function OnKeyPress() +{ + keyPress(); +} + +function OnLoad() +{ + adjust(); + loadHandler(); +} + +function OnResize() +{ + adjust(); + resizeHandler(); +} diff --git a/html/include/focus.js b/html/include/focus.js index 29003ea5b..a16220c57 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -293,9 +293,6 @@ function divtoggle(element) { } } -window.onload = adjust; -window.onresize = adjust; - function adjust (e) { adjust_height(e); adjust_width(e); diff --git a/html/include/layersmenu.js b/html/include/layersmenu.js index 6438a89c9..f4302e7ca 100644 --- a/html/include/layersmenu.js +++ b/html/include/layersmenu.js @@ -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) {