From: Jan Schneider Date: Wed, 8 Dec 2010 14:49:45 +0000 (+0100) Subject: Fix resetting search field. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=62419c18a24c461975061faf2a7c35b0f70bf794;p=horde.git Fix resetting search field. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 4925c0b78..cb8de46ca 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -321,13 +321,16 @@ KronolithCore = { this.redirect(fullloc, true); return; } - if (this.openLocation == fullloc) { return; } this.viewLoading.push([ fullloc, data ]); + if (loc != 'search') { + $('kronolithSearchTerm').setValue($('kronolithSearchTerm').readAttribute('default')); + } + switch (loc) { case 'day': case 'week': @@ -790,7 +793,6 @@ KronolithCore = { } }); if (this.view && this.view != loc) { - $('kronolithSearchTerm').setValue($('kronolithSearchTerm').readAttribute('default')); $('kronolithView' + this.view.capitalize()).fade({ duration: this.effectDur, queue: 'end'