 comment %} Element dragging started {% endcomment %}
          onStart: function (event) {
            event.item.startPos = event.oldIndex;
          },

          {% comment %} Element dragging started {% endcomment %}
          onEnd: function (event) {
            let $eventItem = $('#' + event.item.id)
            let $tasksEventItem = $('#tasks-' + event.item.id)
            {% comment %} Check if objective was moved to be after another objective {% endcomment %}
            if (event.item.startPos <