mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 20:25:32 +01:00
This commit is contained in:
commit
64b6385921
@ -16,7 +16,7 @@ function multi_image() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('#upload_url').remove();
|
$('#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)) {
|
if (!(images_len >= max_images)) {
|
||||||
$('.add_image').after('<br/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">');
|
$('.add_image').after('<br/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">');
|
||||||
|
@ -116,6 +116,12 @@ form table tr td div label {
|
|||||||
.multifile {
|
.multifile {
|
||||||
border: 2px dashed #B7C5D9;
|
border: 2px dashed #B7C5D9;
|
||||||
}
|
}
|
||||||
|
.file:not(.multifile) .post-image {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.file:not(.multifile) {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
p.fileinfo {
|
p.fileinfo {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="files">
|
<div class="files">
|
||||||
{% for file in post.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' %}
|
{% if file.file == 'deleted' %}
|
||||||
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
|
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user