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

Update jquery.dynatable.js #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AixaMartinez
Copy link

  1. I changed single quotes to double quotes. This wasn't getting an error but loads of warnings.
  2. I've got a dynatable with several filters. Each filter has been populated with certain values + empty string to allow users to select all or just some of them. If I select a value in the first filter and leave the other filters blank it works fine. But if I leave the first filter empty and I select a value in any of the others filters the table doesn't finish loading because there is an error. Where? in the line 1553 (Cannot convert undefined or null to object) it tries to delete from the urlOptions an undefined object.

You need to check if label is undefined before trying to delete it, line 1553: if (typeof urlOptions[label] === "undefined"){ urlOptions[label] = {}; }
I added this condition in line 1564 because I think It could happen too.

What do you think? :)

Looking forward to hearing from you soon.

Regards,

Aixa

1. I changed single quotes to double quotes. This wasn't getting an error but loads of warnings.
2. I've got a dynatable with several filters. Each filter has been populated with certain values + empty string to allow users to select all or just some of them. If I select a value in the first filter and leave the other filters blank it works fine. But if I leave the first filter empty and I select a value in any of the others filters the table doesn't finish loading because there is an error. Where? in the line 1553 (Cannot convert undefined or null to object) it tries to delete from the urlOptions an undefined object.

You need to check if label is undefined before trying to delete it, line 1553: if (typeof urlOptions[label] === "undefined"){ urlOptions[label] = {}; }
I added this condition in line 1564 because I think It could happen too.

What do you think? :)

Looking forward to hearing from you soon.

Regards,

Aixa
@mlangens
Copy link

Hi @AixaMartinez! I'm helping @JangoSteve with Dynatable. We're getting ready to move forward with a lot of overdue work. We're having a meeting about all open PRs next week. We do require that all contributors sign the CLA. Are you available to do so?

@elgow
Copy link

elgow commented Apr 6, 2017

Any hope of getting this fix in somehow? This bug prevents use of multiple filters.

@AixaMartinez
Copy link
Author

Hello @JangoSteve. I missed the message you sent a while ago. If you still want to work on this I'm happy to sign the CLA. Just let me know how to proceed.

Regards,

Aixa

@AixaMartinez
Copy link
Author

Hello @mlangens. I missed the message you sent a while ago. If you still want to work on this I'm happy to sign the CLA. Just let me know how to proceed.

Regards,

Aixa

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

Successfully merging this pull request may close these issues.

3 participants