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)
|
[](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
|
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,
|
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.
|
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
|
### Future
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Django Admin Sortable
|
||||||
|
|
||||||
|Build Status|
|
|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
|
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,
|
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.
|
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
|
- Fixed an issue where the index\_value for sortable stacked inlines
|
||||||
inlines. Thanks [@Hovercross](https://github.com/Hovercross) for
|
might not have been found.
|
||||||
reporting the issue.
|
|
||||||
|
|
||||||
Future
|
Future
|
||||||
~~~~~~
|
~~~~~~
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
VERSION = (2, 0, 12)
|
VERSION = (2, 0, 13)
|
||||||
DEV_N = None
|
DEV_N = None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
var sorting_urls = $(':hidden[name="admin_sorting_url"]');
|
var sorting_urls = $(':hidden[name="admin_sorting_url"]');
|
||||||
if (sorting_urls.length)
|
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');
|
var tabular_inline_rows = sortable_inline_group.find('.tabular table tbody tr');
|
||||||
|
|
||||||
tabular_inline_rows.addClass('sortable');
|
tabular_inline_rows.addClass('sortable');
|
||||||
|
|
@ -27,8 +27,8 @@
|
||||||
var indexes = [];
|
var indexes = [];
|
||||||
ui.item.parent().children('tr').each(function(i)
|
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) {
|
if (index_value !== '' && index_value !== undefined) {
|
||||||
indexes.push(index_value);
|
indexes.push(index_value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue