Skip to content

Commit

Permalink
🐛 font inputs rendered twice fix
Browse files Browse the repository at this point in the history
In the Settings > Appearance> Font tab, the input fields for body and header fonts were getting rendered twice.  We had duplicate code in two different files that called fontselect() on both elements. Because JS was getting called twice, two input fields were displayed. Removing one of them resolves the issue.

Issue:
- https://github.com/scientist-softserv/adventist-dl/issues/590
  • Loading branch information
Shana Moore committed Oct 5, 2023
1 parent 85b5250 commit aa901a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions app/assets/javascripts/admin_font_select.js

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
//= require tether
// Required by Blacklight
//= require blacklight/blacklight
//= require admin_font_select

// Moved the Hyku JS *above* the Hyrax JS to resolve #1187 (following
// a pattern found in ScholarSphere)
Expand Down

0 comments on commit aa901a5

Please sign in to comment.