From 4fe1536b7e05e4bfc01cad6728ff591d86e6042c Mon Sep 17 00:00:00 2001 From: Jonathan Rehm Date: Thu, 6 Jul 2017 10:33:47 -0700 Subject: [PATCH] Simplify the read functionality's code * Use block label to toggle the checkbox * Submit form when checkbox's value changes (regardless of whether mouse is used or not) * Remove unused code --- cps/static/css/style.css | 1 + cps/templates/detail.html | 34 +++++++++------------------------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/cps/static/css/style.css b/cps/static/css/style.css index e136fedf..6e6d1c9d 100644 --- a/cps/static/css/style.css +++ b/cps/static/css/style.css @@ -52,3 +52,4 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te .spinner {margin:0 41%;} .spinner2 {margin:0 41%;} +.block-label {display: block;} diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 44fc8f55..1d80cb05 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -109,10 +109,12 @@ {% endif %} {% if not g.user.is_anonymous() %}

-

-
- - +
+ +

@@ -222,28 +224,10 @@ {% endblock %}