From 7f9016aa0010325a4a06691d0b5a61b92d284cd0 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Fri, 30 May 2014 13:42:59 +0300 Subject: Fix data saving --- templates/home.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/home.html b/templates/home.html index af51211..4aba7f2 100644 --- a/templates/home.html +++ b/templates/home.html @@ -18,7 +18,6 @@ }; function save_data(data) { - var data = { tempo: 500, trees: [] @@ -34,10 +33,9 @@ tree_data.push(vals); }); data.trees.push(tree_data); - // console.log(tree.attr('data-light-tree')); }); - console.log(data); + console.log('Saved:', data); $.ajax({ type: 'POST', -- cgit v1.3.1