From 62419c18a24c461975061faf2a7c35b0f70bf794 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 8 Dec 2010 15:49:45 +0100 Subject: [PATCH] Fix resetting search field. --- kronolith/js/kronolith.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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' -- 2.11.0