diff options
author | luxagraf <sng@luxagraf.net> | 2018-06-04 20:44:21 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-06-04 20:44:21 -0500 |
commit | 2c90639b0b4a673d2c91f9c56db11257bd257864 (patch) | |
tree | 8176db35de23867270bf36cafdf44b3c6a185ffa | |
parent | 9f8a44a403d511921b28d1ee120181497e09ec53 (diff) |
fixed another bug
-rw-r--r-- | app/photos/static/my_styles.css | 7 | ||||
-rw-r--r-- | app/photos/views.py | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/photos/static/my_styles.css b/app/photos/static/my_styles.css index 986c8e6..95a16e0 100644 --- a/app/photos/static/my_styles.css +++ b/app/photos/static/my_styles.css @@ -16,7 +16,7 @@ #id_featured_image label { /*style the labels to look like dropdown options, kinda*/ color: #000; - display:none; + display:block; margin: 2px 2px 2px 10px; height:102px; opacity:.6; @@ -24,14 +24,15 @@ } #id_featured_image:hover label{ /*this is how labels render in the "expanded" state. we want to see only the selected radio button in the collapsed menu, and all of them when expanded*/ - display:block; } #id_featured_image label:hover { opacity:.8; } #id_featured_image input:checked + label { /*tricky! labels immediately following a checked radio button (with our markup they are semantically related) should be fully opaque regardless of hover, and they should always be visible (i.e. even in the collapsed menu*/ - opacity:1 !important; display:block; + opacity:1 !important; + display:block; + background: #333; } /*pfft, nothing as cool here, just the value trace*/ diff --git a/app/photos/views.py b/app/photos/views.py index 6f2d118..87cc996 100644 --- a/app/photos/views.py +++ b/app/photos/views.py @@ -81,9 +81,8 @@ def photo_preview_json(request, pk): def thumb_preview_json(request, pk): p = LuxImage.objects.get(pk=pk) - thumb = p.get_admin_insert() data = {} - data['url'] = thumb[22:] + data['url'] = p.get_admin_insert() data = json.dumps(data) return HttpResponse(data) |