File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def get_urls(self):
85
85
def get_actions (self , request ):
86
86
actions = super (SortableAdminMixin , self ).get_actions (request )
87
87
paginator = self .get_paginator (request , self .get_queryset (request ), self .list_per_page )
88
- if len (paginator .page_range ) > 1 :
88
+ if len (paginator .page_range ) > 1 and 'all' not in request . GET :
89
89
# add actions for moving items to other pages
90
90
move_actions = []
91
91
cur_page = int (request .GET .get ('p' , 0 )) + 1
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ jQuery(function($) {
44
44
} ) ;
45
45
endindex = dragged_rows . item . index ( )
46
46
47
- var startorder = parseInt ( $ ( dragged_rows . item . context ) . find ( 'div.drag' ) . attr ( 'order' ) ) ;
47
+ startorder = $ ( dragged_rows . item . context ) . find ( 'div.drag' ) . attr ( 'order' ) ;
48
48
if ( startindex == endindex ) return ;
49
49
else if ( endindex == 0 ) {
50
50
if ( ordering === '1' || ordering === undefined )
You can’t perform that action at this time.
0 commit comments