Module: nagvis Branch: master Commit: c5afb5616f5aa76cd0b9371de90b394f6ad9cc0b URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=c5afb5616f5aa76cd0b9371de90b394f6ad9cc0b
Author: Lars Michelsen <[email protected]> Date: Thu Aug 5 01:37:08 2010 +0200 Relocated function to better place --- share/frontend/nagvis-js/js/frontend.js | 17 +++++++++++++++++ share/frontend/nagvis-js/js/nagvis.js | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/share/frontend/nagvis-js/js/frontend.js b/share/frontend/nagvis-js/js/frontend.js index 7975f67..d5e44ff 100644 --- a/share/frontend/nagvis-js/js/frontend.js +++ b/share/frontend/nagvis-js/js/frontend.js @@ -36,6 +36,23 @@ var oAutomapParams = {}; var bBlockUpdates = false; /** + * Returns the current height of the header menu + */ +function getHeaderHeight() { + var ret = 0; + + // FIXME: Check if header is shown + + var oHeader = document.getElementById('header'); + if(oHeader) { + ret = oHeader.clientHeight; + oHeader = null; + } + + return ret; +} + +/** * submitFrontendForm() * * Submits a form in the frontend using ajax without reloading the page diff --git a/share/frontend/nagvis-js/js/nagvis.js b/share/frontend/nagvis-js/js/nagvis.js index e4b77fd..2d5d122 100644 --- a/share/frontend/nagvis-js/js/nagvis.js +++ b/share/frontend/nagvis-js/js/nagvis.js @@ -501,23 +501,6 @@ function getRandom(min, max) { return min + parseInt(Math.random() * (max-min+1), 0); } -/** - * Returns the current height of the header menu - */ -function getHeaderHeight() { - var ret = 0; - - // FIXME: Check if header is shown - - var oHeader = document.getElementById('header'); - if(oHeader) { - ret = oHeader.clientHeight; - oHeader = null; - } - - return ret; -} - function cloneObject(what) { var o; var i; ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
