From c4d4d7f9dd8104171b62b99b7b4f565bf34b6c0b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 17 Dec 2015 22:08:20 -0500 Subject: made the admin thumbnail widget a bit nicer --- design/templates/admin/photos/luxgallery/change_form.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'design/templates') diff --git a/design/templates/admin/photos/luxgallery/change_form.html b/design/templates/admin/photos/luxgallery/change_form.html index 6b26da1..39281c2 100644 --- a/design/templates/admin/photos/luxgallery/change_form.html +++ b/design/templates/admin/photos/luxgallery/change_form.html @@ -11,7 +11,8 @@ if (!$) { $(function(){ $('#id_images').css('width', '500px').css('height', '400px'); $('#id_images option').each(function(){ - $(this).attr('style', 'background: url({{MEDIA_URL}}images/galleries/thumb/'+$(this).text()+') no-repeat; background-size: 120px 80px; height: 80px; padding-left: 120px; line-height: 80px; margin-bottom: 4px;'); + $(this).attr('style', 'background: url({{MEDIA_URL}}images/galleries/thumb/'+$(this).text().split(" ")[1]+') no-repeat; background-size: 120px 80px; height: 80px; padding-left: 120px; line-height: 80px; margin-bottom: 4px;'); + $(this).html($(this).text().split(" ")[0] + ' – '+ $(this).text().split(" ")[1].split("/")[1] ) }); }); -- cgit v1.2.3-70-g09d2