[open-ils-commits] r15050 - trunk/Open-ILS/xul/staff_client/chrome/content/main (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 1 13:27:50 EST 2009
Author: erickson
Date: 2009-12-01 13:27:46 -0500 (Tue, 01 Dec 2009)
New Revision: 15050
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul
Log:
wrap idle delay in try/catch to prevent cryptic popup error with invalid org setting values
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul 2009-11-30 21:52:46 UTC (rev 15049)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul 2009-12-01 18:27:46 UTC (rev 15050)
@@ -58,7 +58,11 @@
}
}
};
- idleService.addIdleObserver(idleObserver, delay); // seconds
+ try { // prevent scary popup from invalid delay time
+ idleService.addIdleObserver(idleObserver, delay); // seconds
+ } catch(E) {
+ dump("Idle delay of '" + delay + "' is not a valid delay time");
+ }
// You could remove the IdleObserver with the following line...
// idleService.removeIdleObserver(idleObserver, delay);
// ... but why would we?
More information about the open-ils-commits
mailing list