Reset search field if closing view.
authorJan Schneider <jan@horde.org>
Tue, 7 Dec 2010 17:19:36 +0000 (18:19 +0100)
committerJan Schneider <jan@horde.org>
Tue, 7 Dec 2010 21:01:58 +0000 (22:01 +0100)
kronolith/js/kronolith.js

index 104faf8..2d2e5f6 100644 (file)
@@ -756,6 +756,7 @@ KronolithCore = {
             }
         });
         if (this.view && this.view != loc) {
+            $('kronolithSearchTerm').setValue($('kronolithSearchTerm').readAttribute('default'));
             $('kronolithView' + this.view.capitalize()).fade({
                 duration: this.effectDur,
                 queue: 'end'