From: erickson Date: Tue, 1 Dec 2009 18:27:46 +0000 (+0000) Subject: wrap idle delay in try/catch to prevent cryptic popup error with invalid org setting... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e8115e49ec03838bf83e56b53cf03c63999c21cc;p=evergreen%2Ftadl.git wrap idle delay in try/catch to prevent cryptic popup error with invalid org setting values git-svn-id: svn://svn.open-ils.org/ILS/trunk@15050 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul index 786e018940..cb044095bf 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul @@ -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?