Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pager size on boot #269

Closed
dmaglio opened this issue Mar 28, 2013 · 5 comments
Closed

Pager size on boot #269

dmaglio opened this issue Mar 28, 2013 · 5 comments

Comments

@dmaglio
Copy link

dmaglio commented Mar 28, 2013

Hi,
I need to save pager size and last seen page before page refresh.
I trying to use bin pagerChange but don't work, I found in the issue a widget that allows to save the state, it saves correctly, but when I refresh the page, the table does not meet the size saved.
This is the bind of paperChange:

$('#myTable').bind('pagerChange', function() {
  // save pager size
  $.tablesorter.storage(this, 'tablesorter-pagesize', this.config.pager.size);
});
@Mottie
Copy link
Owner

Mottie commented Mar 28, 2013

Did you try the widget and code I posted here?

@dmaglio
Copy link
Author

dmaglio commented Mar 28, 2013

Yes, on refresh pagesize change value but table size return on default value

@dmaglio
Copy link
Author

dmaglio commented Mar 28, 2013

Sorry, resolved. I have inserted an selected into pagesize select. Is it possible to save current page for reload on refresh page?

@Mottie
Copy link
Owner

Mottie commented Apr 16, 2013

Hmm, I'm not sure how to tell the difference between a reload and a refresh... I still have this on my to do list, but I haven't had much time to do research. Sorry.

@Mottie Mottie mentioned this issue Oct 3, 2013
@Mottie
Copy link
Owner

Mottie commented Oct 11, 2013

Hi @dmaglio!

Well, I just added a savePages option to the pager addon. So hopefully that will resolve this issue :) If not, please feel free to post a message here for me to reopen it and I will try to assist you further.

@Mottie Mottie closed this as completed Oct 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants