Skip to content

Commit e501cd2

Browse files
author
Zane
committed
Article editor: images gallery
1 parent 99ac532 commit e501cd2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎assets/js/article-edit-images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
jQuery(document).on('click', '.tli-image-upload', function(event) {
5-
5+
$(this).siblings('input[type="file"]').click();
66
});

‎templates/article/editor/images.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<button type="button" class="btn btn-primary tli-image-upload">
2929
<i class="fa-solid fa-upload"></i> Carica immagini
3030
</button>
31+
32+
<input type="file" multiple accept="image/*" class="d-none">
33+
34+
<div class="tli-image-upload-progress"></div>
3135
</div>
3236

3337
</div>

0 commit comments

Comments
 (0)