feat: Grab slides for reorder using the handle instead of entire row (#5176)
This commit is contained in:
parent
07b10b221b
commit
957f560ac2
|
@ -3,8 +3,8 @@
|
|||
{% load origin ietf_filters static %}
|
||||
{% block title %}{{ meeting }} : {{ acronym }}{% endblock %}
|
||||
{% block morecss %}
|
||||
.draggable {
|
||||
cursor: pointer;
|
||||
.drag-handle {
|
||||
cursor: move;
|
||||
}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
@ -64,6 +64,7 @@
|
|||
var options = {
|
||||
group: "slides",
|
||||
animation: 150,
|
||||
handle: ".drag-handle",
|
||||
onAdd: function(event) {onAdd(event)},
|
||||
onRemove: function(event) {onRemove(event)},
|
||||
onEnd: function(event) {onEnd(event)}
|
||||
|
|
|
@ -137,16 +137,11 @@
|
|||
data-remove-from-session="{% url 'ietf.meeting.views.ajax_remove_slides_from_session' session_id=session.pk num=session.meeting.number %}"
|
||||
data-reorder-in-session="{% url 'ietf.meeting.views.ajax_reorder_slides_in_session' session_id=session.pk num=session.meeting.number %}">
|
||||
{% for pres in session.filtered_slides %}
|
||||
<tr data-name="{{ pres.document.name }}"
|
||||
{% if can_manage_materials %}
|
||||
class="draggable"
|
||||
title="Drag to reorder."
|
||||
{% endif %}
|
||||
>
|
||||
<tr data-name="{{ pres.document.name }}" {% if can_manage_materials %} class="draggable" {% endif %}>
|
||||
{% url 'ietf.doc.views_doc.document_main' name=pres.document.name as url %}
|
||||
{% if can_manage_materials %}
|
||||
<td>
|
||||
<i class="bi bi-grip-vertical"></i>
|
||||
<i class="bi bi-grip-vertical drag-handle" title="Drag to reorder"></i>
|
||||
</td>
|
||||
{% endif %}
|
||||
<td>
|
||||
|
|
Loading…
Reference in a new issue