From: Bill Erickson Date: Tue, 27 Jun 2017 16:16:20 +0000 (-0400) Subject: JBAS-1728 Prevent noisy floating.js console errors X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2f95642e301b58496b375695972543ac46e171cf;p=working%2FEvergreen.git JBAS-1728 Prevent noisy floating.js console errors Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/ui/kcls/circ/selfcheck/floating.js b/Open-ILS/web/js/ui/kcls/circ/selfcheck/floating.js index b8b57809de..7ac1bfbcac 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/floating.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/floating.js @@ -23,8 +23,10 @@ var floatingMenu = floatingMenu.move = function () { - floatingMenu.menu.style.left = floatingMenu.nextX + 'px'; - floatingMenu.menu.style.top = floatingMenu.nextY + 'px'; + if (floatingMenu.menu) { + floatingMenu.menu.style.left = floatingMenu.nextX + 'px'; + floatingMenu.menu.style.top = floatingMenu.nextY + 'px'; + } } floatingMenu.computeShifts = function () @@ -130,7 +132,7 @@ floatingMenu.doFloat = function() ? document.all[floatingMenuId] : document.layers[floatingMenuId]; - initSecondary(); + floatingMenu.initSecondary(); } var stepX, stepY; @@ -220,4 +222,4 @@ else floatingMenu.init(); floatingMenu.addEvent(window, 'onload', floatingMenu.initSecondary); -} \ No newline at end of file +}