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

Fixed column visibility buttons reordering #159

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

Conversation

KarloX2
Copy link

@KarloX2 KarloX2 commented Nov 30, 2018

Previously the new 'data-cv-idx' attribute value was assigned from "$.inArray(conf.columns, details.mapping)". Instead "details.mapping[conf.columns]" is now used.

Moreover, re-sorting the buttons is now performed only when the index has really changed.

Merging under MIT license is fine for me of course.

Previously the new 'data-cv-idx' attribute value was assigned from ´$.inArray( conf.columns, details.mapping )´. Instead ´details.mapping[conf.columns]´ is now used. Moreover, re-sorting the buttons is now only performed when the index really changed.
@creamteam-de
Copy link

is there a plan to merge this PR? We are affected for the bug. Thanks!

@DataTables
Copy link
Collaborator

I'm not yet certain this is the correct fix I'm afraid. It does appear to address the issue, but I "feel" there is still an underlying issue that could cause us problems again in future. I need to look into it more, but haven't had a chance to do so yet I'm afraid. It is on the list though.

Copy link

@jeremyballardmcn jeremyballardmcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked! Please merge this request ASAP.

@vonboth
Copy link

vonboth commented Sep 16, 2019

+1 See my comment on #154

#154 (comment)

I also found out that jquery $.inArray(..... doesn't behave as it should.

So don't know if this PR will fix also #154 but it's worth giving it a try!

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.

5 participants