From 4c72a86633118b0ef5225129e62aff2612de2ac5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 25 Nov 2009 23:59:30 +0100 Subject: [PATCH] Fix searching. --- kronolith/js/kronolith.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index e871e7ef6..195ba7af0 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -322,7 +322,7 @@ KronolithCore = { break; case 'search': - var cals = [], term = locParts[1], + var cals = [], term = locParts[0], query = Object.toJSON({ 'title': term }); this.closeView(); this.updateView(null, 'search', term); @@ -334,7 +334,7 @@ KronolithCore = { }); }); this.startLoading('search', query); - this.doAction('Search' + locParts[0], + this.doAction('SearchEvents', { 'cals': cals.toJSON(), 'query': query }, function(r) { // Hide spinner. @@ -2268,7 +2268,7 @@ KronolithCore = { break; case 'kronolithSearchForm': - this.go('search:' + $F('kronolithSearchContext') + ':' + $F('kronolithSearchTerm')) + this.go('search:' + $F('kronolithSearchTerm')) e.stop(); break; } @@ -2559,7 +2559,7 @@ KronolithCore = { return; case 'kronolithSearchButton': - this.go('search:' + $F('kronolithSearchContext') + ':' + $F('kronolithSearchTerm')) + this.go('search:' + $F('kronolithSearchTerm')) break; case 'kronolithNotifications': -- 2.11.0