summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/photos/static/my_styles.css7
-rw-r--r--app/photos/views.py3
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)