-
Notifications
You must be signed in to change notification settings - Fork 102
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
Conversation
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); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
int oldIndex = getRowIndex(); | ||
int index = Integer.valueOf(indexes); | ||
setRowIndex(index); | ||
setRowIndex(indexList.get(0)); |
There was a problem hiding this comment.
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
No description provided.