Fix not resetting the quick search form after an error.
authorJan Schneider <jan@horde.org>
Mon, 7 Sep 2009 13:34:55 +0000 (15:34 +0200)
committerJan Schneider <jan@horde.org>
Wed, 9 Sep 2009 21:17:46 +0000 (23:17 +0200)
kronolith/js/kronolith.js

index 9cd0b25..304e750 100644 (file)
@@ -2132,7 +2132,9 @@ KronolithCore = {
                       }),
                       function(r) {
                           this._loadEventsCallback(r);
-                          $('kronolithQuickinsertQ').value = '';
+                          if (Object.isUndefined(r.msgs)) {
+                              $('kronolithQuickinsertQ').value = '';
+                          }
                       }.bind(this));
     },