From 274efc04ca95f6e209b60ff0e7fd94704a5269a5 Mon Sep 17 00:00:00 2001 From: Max Ogden Date: Tue, 5 Jul 2011 19:24:08 -0700 Subject: [PATCH] stringify stuff for preview mode --- attachments/script/costco.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attachments/script/costco.js b/attachments/script/costco.js index a0d15653..1ca8dd4a 100644 --- a/attachments/script/costco.js +++ b/attachments/script/costco.js @@ -40,7 +40,8 @@ var costco = function() { toUpdate.push(updated); edited++; } - if(preview) preview.push({before: doc[app.currentColumn], after: updated[app.currentColumn]}); + + if(preview) preview.push({before: JSON.stringify(doc[app.currentColumn]), after: JSON.stringify(updated[app.currentColumn])}); }); if(preview) util.render('editPreview', 'expression-preview-container', {rows: preview});