File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -415,8 +415,12 @@ $(function () {
415
415
} ,
416
416
417
417
stateSaveCallback : function ( settings , data ) {
418
+ let page = 0 ;
419
+ try {
420
+ page = ( data ?. page ?? data ?. start / data ?. length ?? 0 ) + 1 ;
421
+ } catch ( e ) { }
418
422
const params = {
419
- page : ( data ?. page ?? 0 ) + 1 ,
423
+ page : page ,
420
424
page_size : data ?. length ,
421
425
search : data ?. search ?. search ,
422
426
order : data ?. order
Original file line number Diff line number Diff line change @@ -158,5 +158,5 @@ <h1>{{ model.label }}</h1>
158
158
< script type ="text/javascript "
159
159
src ="{{ url_for(__name__ ~ ':statics', path='js/actions.js').include_query_params(v=1) }} "> </ script >
160
160
< script type ="text/javascript "
161
- src ="{{ url_for(__name__ ~ ':statics', path='js/list.js').include_query_params(v=1 ) }} "> </ script >
161
+ src ="{{ url_for(__name__ ~ ':statics', path='js/list.js').include_query_params(v=2 ) }} "> </ script >
162
162
{% endblock %}
You can’t perform that action at this time.
0 commit comments