From 61210b9cc365e71736d8b10a0a24643e9bf2d88d Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 11 Nov 2010 15:39:59 +0000 Subject: [PATCH] wraps tips appendChild in try/catch to prevent occaisonal exeptions. git-svn-id: svn://svn.open-ils.org/ILS/trunk@18702 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/tips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/skin/default/js/tips.js b/Open-ILS/web/opac/skin/default/js/tips.js index b24985b326..48fa83a539 100644 --- a/Open-ILS/web/opac/skin/default/js/tips.js +++ b/Open-ILS/web/opac/skin/default/js/tips.js @@ -12,7 +12,7 @@ function insertTip () { if (tip_div) { var tips = tip_div.getElementsByTagName('div')[0].getElementsByTagName('span'); var index = Math.floor(Math.random() * tips.length); - tip_div.appendChild( tips[index] ); + try { tip_div.appendChild( tips[index] ); } catch(E) {} removeCSSClass(tip_div, 'hide_me'); } } -- 2.11.0