stringify stuff for preview mode

This commit is contained in:
Max Ogden 2011-07-05 19:24:08 -07:00
parent f635f20e9e
commit 274efc04ca

View File

@ -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});