Version bump to 2.0.13.

Updated readme.
Slight refactor on JS to avoid extra function call.
Fixed missing semicolon.
master
Brandon Taylor 2016-03-10 16:41:23 -05:00
commit ada42c84de
4 changed files with 11 additions and 12 deletions

View File

@ -2,7 +2,7 @@
[![Build Status](https://travis-ci.org/iambrandontaylor/django-admin-sortable.svg?branch=master)](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

View File

@ -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
~~~~~~

View File

@ -1,4 +1,4 @@
VERSION = (2, 0, 12)
VERSION = (2, 0, 13)
DEV_N = None

View File

@ -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);
}