[open-ils-commits] r18702 - trunk/Open-ILS/web/opac/skin/default/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 11 10:40:01 EST 2010
Author: erickson
Date: 2010-11-11 10:39:59 -0500 (Thu, 11 Nov 2010)
New Revision: 18702
Modified:
trunk/Open-ILS/web/opac/skin/default/js/tips.js
Log:
wraps tips appendChild in try/catch to prevent occaisonal exeptions.
Modified: trunk/Open-ILS/web/opac/skin/default/js/tips.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/tips.js 2010-11-11 15:38:37 UTC (rev 18701)
+++ trunk/Open-ILS/web/opac/skin/default/js/tips.js 2010-11-11 15:39:59 UTC (rev 18702)
@@ -12,7 +12,7 @@
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');
}
}
More information about the open-ils-commits
mailing list