Skip to content

Commit

Permalink
Add back in accordion id
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Nov 23, 2024
1 parent 8f7d44a commit b62c625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/profile/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

<!-- 🌟 Courses -->
<div class="col">
<div class="card profile-card">
<div class="card profile-card" id="courses-accordion">
<div class="card-header">
<h5 class="mb-0">
<%= t('profile.courses') %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/profile/update.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$('#username-error').empty().hide()
$('#user_name').removeClass('is-invalid')
$('#js-messages').empty().hide()
$('#accordion').removeClass('border-danger')
$('#courses-accordion').removeClass('border-danger')
$('[id^="course-card-"]').removeClass('border-danger')
$('[id^="user_pass_lecture-"]').removeClass('is-invalid')
$('[id^="passphrase-error-"]').empty()
Expand All @@ -21,7 +21,7 @@ $('#course-card-' + '<%= Lecture.find_by_id(@errors[:passphrase].first).course.i
<% end %>
<% if @errors[:courses].present? %>
$('#js-messages').append('<%= @errors[:courses].join("") %>').show()
$('#accordion').addClass('border-danger')
$('#courses-accordion').addClass('border-danger')
<% end %>
<% if @errors[:name].present? %>
$('#username-error').append('<%= @errors[:name].join("") %>').show()
Expand Down

0 comments on commit b62c625

Please sign in to comment.