Catch focus failures if field is inactive.
authorJan Schneider <jan@horde.org>
Fri, 21 May 2010 10:23:53 +0000 (12:23 +0200)
committerJan Schneider <jan@horde.org>
Fri, 21 May 2010 10:23:53 +0000 (12:23 +0200)
kronolith/js/kronolith.js

index 0b525fa..5f1cde2 100644 (file)
@@ -1242,7 +1242,9 @@ KronolithCore = {
             field = tab.down('input');
         }
         if (field) {
-            field.focus();
+            try {
+                field.focus();
+            } catch (e) {}
         }
     },