From 0aca529e277617dba305677ce436d444fd1beeda Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 26 Sep 2015 13:56:25 -0700 Subject: [PATCH] checkbox for closet management drop the remove link (just use quantity: 0) to create a bigger checkbox label target --- app/assets/javascripts/closet_hangers/index.js | 11 ++++++++++- .../stylesheets/closet_hangers/_index.sass | 18 ++++++++++++++++++ app/views/closet_hangers/index.html.haml | 3 +-- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/closet_hangers/index.js b/app/assets/javascripts/closet_hangers/index.js index cb5c114b..78630540 100644 --- a/app/assets/javascripts/closet_hangers/index.js +++ b/app/assets/javascripts/closet_hangers/index.js @@ -91,7 +91,16 @@ var hangerId = hangerEl.data("id"); var quantityEl = hangerEl.find("div.quantity"); var quantity = hangerEl.data("quantity"); - + + // Ooh, this part is weird. We only want the name to be linked, so + // lift everything else out. + var label = $('