1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +01:00
This commit is contained in:
8chan 2014-05-21 23:41:47 +00:00
commit 64b6385921
3 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,7 @@ function multi_image() {
e.preventDefault();
$('#upload_url').remove();
var images_len = $('input[type=file]').length;
var images_len = $('form:not([id="quick-reply"]) [type=file]').length;
if (!(images_len >= max_images)) {
$('.add_image').after('<br/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">');

View File

@ -116,6 +116,12 @@ form table tr td div label {
.multifile {
border: 2px dashed #B7C5D9;
}
.file:not(.multifile) .post-image {
float: left;
}
.file:not(.multifile) {
float: none;
}
p.fileinfo {
display: block;
margin: 0;

View File

@ -3,7 +3,7 @@
{% else %}
<div class="files">
{% for file in post.files %}
<div class="file {% if post.num_files > 1 %}multifile{% endif %}" style="width:{{ file.thumbwidth + 40 }}px">
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
{% if file.file == 'deleted' %}
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
{% else %}