Fix Font Awesome Icon selection scoping
- Narrowed scoping of selector so it doesn't interfere with custom widgets after drop - Version bump to 2.0.18 - Updated READMEmaster
parent
d22d4d174c
commit
5cb0f1ebf8
|
|
@ -606,8 +606,8 @@ ordering on top of that just seemed a little much in my opinion.
|
||||||
### Status
|
### Status
|
||||||
django-admin-sortable is currently used in production.
|
django-admin-sortable is currently used in production.
|
||||||
|
|
||||||
### What's new in 2.1.17?
|
### What's new in 2.1.18?
|
||||||
- Fixed Ukrainian translations courtesy of [@Serhiy](https://github.com/SerhiyRomanov)
|
- Fixed scoping issue with Font Awesome Icons if you're using a custom widget in inline models
|
||||||
|
|
||||||
### Future
|
### Future
|
||||||
- Better template support for foreign keys that are self referential. If someone would like to take on rendering recursive sortables, that would be super.
|
- Better template support for foreign keys that are self referential. If someone would like to take on rendering recursive sortables, that would be super.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
VERSION = (2, 1, 17)
|
VERSION = (2, 1, 18)
|
||||||
DEV_N = None
|
DEV_N = None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
data: { indexes : indexes.join(','), csrfmiddlewaretoken: window.csrftoken },
|
data: { indexes : indexes.join(','), csrfmiddlewaretoken: window.csrftoken },
|
||||||
success: function() {
|
success: function() {
|
||||||
// set icons based on position
|
// set icons based on position
|
||||||
var icons = ui.item.parent().find('.fa');
|
var icons = ui.item.parent().find('a > .fa');
|
||||||
icons.removeClass('fa-sort-desc fa-sort-asc fa-sort');
|
icons.removeClass('fa-sort-desc fa-sort-asc fa-sort');
|
||||||
icons.each(function(index, element) {
|
icons.each(function(index, element) {
|
||||||
var icon = $(element);
|
var icon = $(element);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue