wrap idle delay in try/catch to prevent cryptic popup error with invalid org setting...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Dec 2009 18:27:46 +0000 (18:27 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Dec 2009 18:27:46 +0000 (18:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15050 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul

index 786e018..cb04409 100644 (file)
                     }
                 }
             };
-            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?