Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 6343dba1 authored by Robin Tissot's avatar Robin Tissot

Use css counter for cards to make it work after moving.

parent d7783aad
......@@ -134,6 +134,7 @@ form.inline-form {
#cards-container {
overflow: auto;
counter-reset: card;
}
#cards-container .card {
......@@ -197,6 +198,11 @@ form.inline-form {
left: 50%;
}
.js-card-order:after {
counter-increment: card;
content: counter(card);
}
.process-part-form h5 {
color: var(--secondary);
text-align: center;
......
......@@ -61,7 +61,6 @@ class partCard {
// fill template
$new.attr('id', $new.attr('id').replace('{pk}', this.pk));
this.updateThumbnail();
this.updateOrder();
$('img.card-img-top', $new).attr('title', this.title + '\n<' + this.filename +'>');
$new.attr('draggable', true);
......@@ -197,10 +196,6 @@ class partCard {
img.attr('data-src', uri);
}
updateOrder() {
$('span.js-card-order', this.$element).html(this.order+1);
}
updateWorkflowIcons() {
var map = [
['convert', this.convertIcon],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment