Added undefined protection to slider javascript #189
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A bit of data that is supposed to be added to the month and year links is not being added when the page is rendered. I have not been able to track down why the data attribute is not being added, but the process is supposed to fail gracefully and currently is not. I've added logic that allows the fallback logic - of linking to that calendar month or year view, respectively - to run if the data-ajax-link isn't defined.
Motivation and Context
This will correct the bug reported by Roger in the events channel.
How Has This Been Tested?
Changes are in dev and qa.
Types of changes
Checklist: