From 2dab294b0c2147222a48529038ae2a5332ac05f5 Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Wed, 18 Nov 2015 07:52:18 -0500 Subject: [PATCH] Updated readme. Version bump to 2.0.6. Added JS to remove inline style added by jQueryUI when highlighting form rows. --- README.md | 6 +++--- adminsortable/__init__.py | 2 +- .../adminsortable/js/admin.sortable.stacked.inlines.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3172a57..7dc90ed 100644 --- a/README.md +++ b/README.md @@ -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.5 +Current version: 2.0.6 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, @@ -457,8 +457,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.5? -- Just a minor maintenance release to remove a deprocated template tag in preparation for Django 1.9. Thanks [@itbabu](https://github.com/itbabu)! +### What's new in 2.0.6? +- Minor bugfix for stacked inlines that was causing blank rows to be displayed below fieldsets that were collapsible. Thanks [@cho-is](https://github.com/cho-is) for reporting. ### Future diff --git a/adminsortable/__init__.py b/adminsortable/__init__.py index 7505efe..120ad22 100644 --- a/adminsortable/__init__.py +++ b/adminsortable/__init__.py @@ -1,4 +1,4 @@ -VERSION = (2, 0, 5) # following PEP 386 +VERSION = (2, 0, 6) # following PEP 386 DEV_N = None diff --git a/adminsortable/static/adminsortable/js/admin.sortable.stacked.inlines.js b/adminsortable/static/adminsortable/js/admin.sortable.stacked.inlines.js index 5a1f8d4..852fe29 100644 --- a/adminsortable/static/adminsortable/js/admin.sortable.stacked.inlines.js +++ b/adminsortable/static/adminsortable/js/admin.sortable.stacked.inlines.js @@ -40,7 +40,7 @@ type: 'POST', data: { indexes : indexes.join(',') }, success: function() { - ui.item.find('.form-row').effect('highlight', {}, 1000); + ui.item.find('.form-row').effect('highlight', {}, 1000).removeAttr('style'); } }); }