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

Multi-select functionality for chaise #480

Merged
merged 4 commits into from
Aug 9, 2017
Merged

Multi-select functionality for chaise #480

merged 4 commits into from
Aug 9, 2017

Conversation

jrchudy
Copy link
Member

@jrchudy jrchudy commented Aug 7, 2017

This PR provides some additions to the ermrestJS API to support multi-select functionality in the recordset directive in chaise. Changes in this PR include:

  • Added a uniqueId function to Tuple so each Tuple can be identified by a unique identifier when keeping track of currently selected rows
  • Added a polyfill for Array.findIndex because it is not supported in IE.
  • in a previous commit directly to master I added Array.clear as well for emptying out an array.

This PR is required to be merged before the corresponding chaise PR. This PR helps to fix issue #1211 in chaise.

@jrchudy jrchudy self-assigned this Aug 7, 2017
@jrchudy jrchudy requested a review from RFSH August 7, 2017 20:45
js/reference.js Outdated
* @type {string}
*/
get uniqueId() {
if (!this._uniqueId) {
Copy link
Member

Choose a reason for hiding this comment

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

Change this check to this_uniqueId === undefined to be consistent with other apis.

@RFSH
Copy link
Member

RFSH commented Aug 7, 2017

It seems like you have the "Remove Trailing Whitespace" turned on in atom and it's adding unnecessary changes to the code. It seems like the only change that you have done in the reference.js is adding a new API to Tuple. Can you please revert that file back, turn off the "Remove Trailing Whitespace" feature and then push again?

@jrchudy
Copy link
Member Author

jrchudy commented Aug 9, 2017

@RFSH this Pr is ready for review again. I changed the operator to === in the function I wrote and also in 2 other tuple functions that should have been using it before.

@jrchudy jrchudy merged commit 42e1cc8 into master Aug 9, 2017
@jrchudy jrchudy deleted the unique-id branch August 12, 2017 00:27
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.

2 participants