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

Columns only sort one way until it resets #408

Closed
braseidon opened this issue Nov 5, 2013 · 17 comments
Closed

Columns only sort one way until it resets #408

braseidon opened this issue Nov 5, 2013 · 17 comments
Labels

Comments

@braseidon
Copy link

I've got Tablesorter set up with the Pager and I'm loading the table data via JSON. The JSON is being populated by my MySQL database since there are way too many rows to sort at once (12k+ in the staging setup).

For some reason now after using JSON, the table will only sort one way until you click the header a third time and it resets. Then it'll sort the opposite way. I've checked my code multiple times and I can't see any issues with it - although I'm no JS pro.

URL to my table: http://www.domainsontap.com/domain-stock/

@braseidon
Copy link
Author

I've got it sending an alert every time the URL changes. The function doesn't seem to be going off the first time you click it?

@Mottie
Copy link
Owner

Mottie commented Nov 6, 2013

Hmm, yeah I'll have to look into this... it looks like the sort parameters aren't being sent to the server.

@braseidon
Copy link
Author

Awesome :)

@braseidon
Copy link
Author

Have you had a chance to look into this?

@thezoggy
Copy link
Collaborator

thezoggy commented Nov 8, 2013

fyi bootstrap 3.0.2 is out

@braseidon
Copy link
Author

Just updated, thanks :)

@Mottie
Copy link
Owner

Mottie commented Nov 8, 2013

Hey, @ShutteR9!

Yeah, I finally found the problem. I'll try to update the repo later today.

@braseidon
Copy link
Author

Amazing @Mottie , thank you so much :)

Mottie added a commit that referenced this issue Nov 9, 2013
@Mottie
Copy link
Owner

Mottie commented Nov 9, 2013

This should be all fixed! Thanks for your patience :)

@Mottie Mottie closed this as completed Nov 9, 2013
@braseidon
Copy link
Author

I think the sorting is broken now :) Err it still goes one way only, but now it doesn't update the arrows.

@Mottie
Copy link
Owner

Mottie commented Nov 9, 2013

Seriously? ugh...

It's "working" in this demo.... as stated in that demo, it is a client side demo so the sorting should occur server-side. But you can see the url update correctly.

@braseidon
Copy link
Author

Maybe I have my parameters wrong. I'll check

@Mottie
Copy link
Owner

Mottie commented Nov 9, 2013

There are some javascript errors pertaining to a missing cookie script on the page. That could be the culprit.

@braseidon
Copy link
Author

That has to do with the shopping cart - but I'll fix it and report back.

@braseidon
Copy link
Author

Actually, it was my fault. I'm not going to tell you my mistake though :P

Perfect update though! Thanks :D

@dmarra
Copy link

dmarra commented Jun 22, 2018

There is a special place in hell for people who do not explain their solutions @braseidon

@braseidon
Copy link
Author

@dmarra dude you're about 5 years late XD, there's no way I can remember, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants