Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dm 4260 fix paginated practice card images (#724)
* move `#replaceImagePlaceholders` methods to `_practice_card_utilities` refactors to be more readable, removes argument as it will always be the same for practice cards * add include tags for `practice_card_utilities` and `signed_resource` * add invocation of `replaceImagePlaceholders` where practice cards have been loaded * edit `practice_card.html.erb` to always render placeholder * edit invocation of `#replaceImagePlaceholders` to no longer use argument * edit `#buildPracticeCard` function to include `data-practice-name` in `practice-card-img-placeholder` div remove `#replaceImagePlaceholders`, `#replacePlaceholderWithImage`, and `#loadImage` functions update invocation of `#replaceImagePlaceholders` to no longer use argument edit invocation of `#replaceImagePlaceholders` to no longer use argument * refactor `#replacePlaceholderWithImage` function as per CodeQl warning: "DOM text reinterpreted as HTML" * add explicit export of function as per CodeQl warning: "Unused function" * remove `export` from `replaceImagePlaceholders` function * add invocation of `replaceImagePlaceholders` * edit `replacePlaceholderWithImage` function to replace `.practice-card-img-placeholder` div class with `.practice-card-img` class
- Loading branch information