Pager (widget only): fix initial start page default

This commit is contained in:
Mottie 2015-02-10 10:14:04 -06:00
parent 7dc74b9892
commit ec0343ab5f

View File

@ -167,7 +167,7 @@ tsp = ts.pager = {
p.initializing = true;
if (wo.pager_savePages && ts.storage) {
t = ts.storage(table, wo.pager_storageKey) || {}; // fixes #387
p.page = ( isNaN(t.page) ? p.page : t.page ) || p.setPage || 1;
p.page = ( isNaN(t.page) ? p.page : t.page ) || p.setPage || 0;
p.size = ( isNaN(t.size) ? p.size : t.size ) || p.setSize || 10;
$.data(table, 'pagerLastSize', p.size);
}