diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2014-05-30 12:15:21 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2014-05-30 12:15:21 +0300 |
| commit | d79bd62eeef67fe2560e30406b9fc0ec49cf3d6e (patch) | |
| tree | d6b8e0e7035281acf7e81b5f76637b7842bb9055 /templates | |
| parent | f9ea5d06f7eb768ce9ca2bb988a7a653b717b1e2 (diff) | |
Add toggle row button
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/home.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html index ece3574..2caf751 100644 --- a/templates/home.html +++ b/templates/home.html @@ -60,6 +60,11 @@ $('.light-tree[data-light-tree=' + tree +']').show(); }); + $('.toggle-row-btn').click(function() { + var row = $(this).parent('.light-row'); + $(row).find('.light-cell-btn').toggleClass('active'); + }) + $('#save-btn').click(function(){ save_data(); }); @@ -94,6 +99,7 @@ <% _.each(_.range(cells), function(k) { %> <button type="button" class="btn btn-success light-cell-btn" data-toggle="button" data-light-cell="<%= k %>"> </button> <% }); %> + <button type="button" class="btn btn-warning toggle-row-btn">Toggle Row</button> </div> <% }); %> </div> |
