summaryrefslogtreecommitdiff
path: root/design/templates/admin/jrnl/change_form.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-07-15 07:29:23 -0400
committerluxagraf <sng@luxagraf.net>2016-07-15 07:29:23 -0400
commitc32778185d371bdf65112a1d8cddd6fc2befcb73 (patch)
tree06514c30155a9b0cda08444bb1bd220c60bf25a6 /design/templates/admin/jrnl/change_form.html
parente2139aeabd564a48598a1142492bcbd08f3f722c (diff)
mane homepage currator a bit smarter and easier to update
Diffstat (limited to 'design/templates/admin/jrnl/change_form.html')
-rw-r--r--design/templates/admin/jrnl/change_form.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/design/templates/admin/jrnl/change_form.html b/design/templates/admin/jrnl/change_form.html
index 13d3790..880e9c9 100644
--- a/design/templates/admin/jrnl/change_form.html
+++ b/design/templates/admin/jrnl/change_form.html
@@ -12,6 +12,11 @@ $(function(){
$('#id_body_markdown').each(function(){
$(this).after('<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luximages/insert/?textarea='+this.id+'"></iframe>');
});
+ $('#id_images').css('width', '500px').css('height', '400px');
+ $('#id_images option').each(function(){
+ $(this).attr('style', 'background: url('+$(this).text().split("qq")[1]+') no-repeat; background-size: 120px 80px; height: 80px; padding-left: 125px; line-height: 80px; margin-bottom: 4px; padding-bottom: 5px;border-bottom: #eee 1px solid;');
+ $(this).html($(this).text().split("qq")[0] + ' &ndash; <a href="/admin/photos/luximage/'+ $(this).text().split("qq")[2]+'/change/">edit</a>')
+ });
});
</script>