Skip to content

Commit 3688e67

Browse files
author
Zane
committed
Article editor: images gallery
1 parent 5b2fee6 commit 3688e67

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ $(document).on('change', '#tli-article-editor-image-gallery input[type="file"]',
5252
debugger;
5353
progressBar.addClass('bg-success');
5454
//progressBarContainer.append('<div class="alert alert-success mt-2">✅ ' + response.message + '</div>');
55+
56+
$('#tli-article-editor-image-gallery .tli-no-images-guide').fadeOut('slow', function(){
57+
$('#tli-article-editor-image-gallery .tli-images-guide').fadeIn('fast');
58+
});
59+
5560
},
5661
error: function(jqXHR, textStatus, errorThrown) {
5762
debugger;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
data-save-url="{{ path('app_article_edit_images-upload', {'articleId': Article.id}) }}">
44

55
{% embed 'parts/alert-chalkboard.html.twig' %}
6-
{% block alertStyle %}{% if Article.Images is empty %}collapse{% endif%} tli-images-guide{% endblock %}
6+
{% block alertStyle %}{% if Article.Images is empty %}collapse{% endif %} tli-images-guide{% endblock %}
77
{% block alertTitle %}Immagini caricate{% endblock %}
88
{% block alertBody %}Clicca o trascina un'immagine per inserirla nell'articolo{% endblock %}
99
{% endembed %}
1010

11-
{% embed 'parts/alert-chalkboard.html.twig' %}
12-
{% block alertStyle %}{% if Article.Images is not empty %}collapse{% endif%} tli-no-images-guide{% endblock %}
11+
{% embed 'parts/alert-warning.html.twig' %}
12+
{% block alertStyle %}{% if Article.Images is not empty %}collapseeee{% endif%} tli-no-images-guide{% endblock %}
1313
{% block alertTitle %}Nessuna immagine caricata{% endblock %}
1414
{% block alertBody %}Carica un'immagine per inserirla nell'articolo{% endblock %}
1515
{% endembed %}

0 commit comments

Comments
 (0)