From 1b5337226a157dd74310fa56f124a4ffa1795997 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 7 Jul 2010 16:10:58 +0200 Subject: [PATCH] Use Object.toJSON(). --- kronolith/js/kronolith.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 07caeaccb..1920ce7d9 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -429,7 +429,7 @@ KronolithCore = { $('kronolithAgendaNoItems').hide(); this.startLoading('search', query); this.doAction('searchEvents', - { cals: cals.toJSON(), query: query, time: this.search }, + { cals: Object.toJSON(cals), query: query, time: this.search }, function(r) { // Hide spinner. this.loading--; @@ -4560,7 +4560,7 @@ KronolithCore = { sig: sig, view_start: start, view_end: end, - att: $H({ offDays: diff }).toJSON() + att: Object.toJSON($H({ offDays: diff })) }, function(r) { // Check if this is the still the result of the most @@ -4721,7 +4721,7 @@ KronolithCore = { sig: sig, view_start: start, view_end: end, - att: attributes.toJSON() + att: Object.toJSON(attributes) }, function(r) { // Check if this is the still the result of the most current -- 2.11.0