[open-ils-commits] r18703 - branches/rel_2_0/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:56 EST 2010
Author: erickson
Date: 2010-11-11 10:40:53 -0500 (Thu, 11 Nov 2010)
New Revision: 18703
Modified:
branches/rel_2_0/Open-ILS/web/opac/skin/default/js/tips.js
Log:
wraps tips appendChild in try/catch to prevent occaisonal exeptions.
Modified: branches/rel_2_0/Open-ILS/web/opac/skin/default/js/tips.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/skin/default/js/tips.js 2010-11-11 15:39:59 UTC (rev 18702)
+++ branches/rel_2_0/Open-ILS/web/opac/skin/default/js/tips.js 2010-11-11 15:40:53 UTC (rev 18703)
@@ -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