From 214473c650918282ec4bceee883f3bcd86a1bc3d Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Fri, 30 May 2014 14:22:28 +0300 Subject: Add clear row button --- templates/home.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/home.html b/templates/home.html index 4aba7f2..0d7b4f5 100644 --- a/templates/home.html +++ b/templates/home.html @@ -74,9 +74,16 @@ $(row).find('.light-cell-btn').toggleClass('active'); }) + $('.clear-row-btn').click(function() { + var row = $(this).parent('.light-row'); + $(row).find('.light-cell-btn').removeClass('active'); + }) + $('#save-btn').click(function(){ save_data(); }); + + load_data(); }); @@ -108,7 +115,8 @@ <% _.each(_.range(cells), function(k) { %> <% }); %> - + + <% }); %> -- cgit v1.3.1