-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed covers to use class instead of id (#9565)
* changed covers to class instead of id * Fix: don't repeat element `id` values in covers template This commit simply passes through an optional value to `covers/change.html` so that it's possible to avoid repeating the element `id` values, which allows the "correct" HTML (i.e. the desktop or mobile HTM) to be edited when the cover popup appears. On the author page, `covers/change.html` is rendered twice by way of `authors/infobox.html` being rendered twice in `author/view.html. This meant element `id` values that should be unique were duplicated. This broke author photo uploads. The uploads were fixed in 5495b7b, however we still had some `id` values repeating, and this meant regardless of whether one was on mobile or desktop, the element `id` associated with the mobile rendering was used, because it appeared first in the document. Note: this may be somewhat of a moot issue as cover upload on mobile require one magically knows to click/tap near the bottom of a cover image to bring up the edit modal. See 17538fd for more. --------- Co-authored-by: Scott Barnes <[email protected]>
- Loading branch information
1 parent
44a46e2
commit b010f39
Showing
4 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters