diff options
author | luxagraf <sng@luxagraf.net> | 2015-12-17 22:14:39 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-12-17 22:14:39 -0500 |
commit | ed871debbb59ae816ef61678d43fcad88033c5dd (patch) | |
tree | 6fdb4252f418ede79a08325247cd431afc553346 /design/templates/admin/photos | |
parent | c4d4d7f9dd8104171b62b99b7b4f565bf34b6c0b (diff) |
add a dirty hack to split on qq so as to avoid splitting on whitespace.
horrible. but whatever, it works
Diffstat (limited to 'design/templates/admin/photos')
-rw-r--r-- | design/templates/admin/photos/luxgallery/change_form.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/admin/photos/luxgallery/change_form.html b/design/templates/admin/photos/luxgallery/change_form.html index 39281c2..b0341ce 100644 --- a/design/templates/admin/photos/luxgallery/change_form.html +++ b/design/templates/admin/photos/luxgallery/change_form.html @@ -11,8 +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().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] ) + $(this).attr('style', 'background: url({{MEDIA_URL}}images/galleries/thumb/'+$(this).text().split("qq")[1]+') no-repeat; background-size: 120px 80px; height: 80px; padding-left: 120px; line-height: 80px; margin-bottom: 4px;'); + $(this).html($(this).text().split("qq")[0] + ' – '+ $(this).text().split("qq")[1].split("/")[1] ) }); }); </script> |