Reordering with unsaved inlines is faulty and counter intuitive.
In this commit I added a javascript alert that prompts the user to save their changes before reordering if unsaved inlines are detected. Please review and let me know if this in compliance with your guidelines.
This commit is contained in:
@@ -27,3 +27,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'adminsortable/css/admin.sortable.inline.css' %}" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block after_related_objects %}{{ block.super }}
|
||||
<input type="hidden" id="localized_save_before_reorder_message" value="{% trans 'There are unsaved changes on this page. Please save your changes before reordering.' %}"/>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user