Version bump to 2.0.13.
Updated readme. Slight refactor on JS to avoid extra function call. Fixed missing semicolon.master
commit
ada42c84de
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](https://travis-ci.org/iambrandontaylor/django-admin-sortable)
|
||||
|
||||
Current version: 2.0.12
|
||||
Current version: 2.0.13
|
||||
|
||||
This project makes it easy to add drag-and-drop ordering to any model in
|
||||
Django admin. Inlines for a sortable model may also be made sortable,
|
||||
|
|
@ -497,8 +497,8 @@ ordering on top of that just seemed a little much in my opinion.
|
|||
django-admin-sortable is currently used in production.
|
||||
|
||||
|
||||
### What's new in 2.0.12?
|
||||
- Fixed an issue with CSRF_COOKIE_NAME not being passed correctly to inlines. Thanks [@Hovercross](https://github.com/Hovercross) for reporting the issue.
|
||||
### What's new in 2.0.13?
|
||||
- Fixed an issue where the index_value for sortable stacked inlines might not have been found.
|
||||
|
||||
|
||||
### Future
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Django Admin Sortable
|
|||
|
||||
|Build Status|
|
||||
|
||||
Current version: 2.0.12
|
||||
Current version: 2.0.13
|
||||
|
||||
This project makes it easy to add drag-and-drop ordering to any model in
|
||||
Django admin. Inlines for a sortable model may also be made sortable,
|
||||
|
|
@ -611,12 +611,11 @@ Status
|
|||
|
||||
django-admin-sortable is currently used in production.
|
||||
|
||||
What's new in 2.0.12?
|
||||
What's new in 2.0.13?
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- Fixed an issue with CSRF\_COOKIE\_NAME not being passed correctly to
|
||||
inlines. Thanks [@Hovercross](https://github.com/Hovercross) for
|
||||
reporting the issue.
|
||||
- Fixed an issue where the index\_value for sortable stacked inlines
|
||||
might not have been found.
|
||||
|
||||
Future
|
||||
~~~~~~
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
VERSION = (2, 0, 12)
|
||||
VERSION = (2, 0, 13)
|
||||
DEV_N = None
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
var sorting_urls = $(':hidden[name="admin_sorting_url"]');
|
||||
if (sorting_urls.length)
|
||||
{
|
||||
var sortable_inline_group = sorting_urls.closest('.inline-group')
|
||||
var sortable_inline_group = sorting_urls.closest('.inline-group');
|
||||
var tabular_inline_rows = sortable_inline_group.find('.tabular table tbody tr');
|
||||
|
||||
tabular_inline_rows.addClass('sortable');
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
var indexes = [];
|
||||
ui.item.parent().children('tr').each(function(i)
|
||||
{
|
||||
var index_value = $(this).find('.original').find(':input').first().val();
|
||||
var index_value = $(this).find('.original :input:first').val();
|
||||
if (index_value !== '' && index_value !== undefined) {
|
||||
indexes.push(index_value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue