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

#878 fix a diffrent between firefox and internet explorer #1121

Merged
merged 15 commits into from
May 12, 2020

Conversation

geopossachs
Copy link
Collaborator

No description provided.

try {
int oldIndex = getRowIndex();
// after https://datatables.net/reference/event/deselect#Description indexes would be an array
// firefox und chrome do not send a array, only the old IE send a array to the server
indexes = indexes.replace("[", "").replace("]", "").trim();
int index = Integer.valueOf(indexes);

Choose a reason for hiding this comment

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

should not it be an Integer type? it can be null I think if the indexes is not provided

int index = Integer.valueOf(indexes);
setRowIndex(index);
super.queueEvent(event);
setRowIndex(oldIndex);
} catch (Exception multipleIndexes) {
} catch (NumberFormatException multipleIndexes) {

Choose a reason for hiding this comment

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

Previously all type of exceptions were handled, now it is only NumberFormatException, is it enough?

@geopossachs geopossachs added the dataTable Issues with the main Topic dataTable label Jan 27, 2020
@geopossachs geopossachs added this to the v1.5.0 milestone Jan 27, 2020
int oldIndex = getRowIndex();
int index = Integer.valueOf(indexes);
setRowIndex(index);
setRowIndex(indexList.get(0));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the bugfix for #878 - split array with regex and take the first element

@stephanrauh stephanrauh merged commit 4e75c36 into TheCoder4eu:master May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dataTable Issues with the main Topic dataTable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

b:datatable sending null for onselect ajax call - Internet Explorer 11
5 participants