Skip to content

Commit

Permalink
Initialize bs-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Oct 16, 2023
1 parent ac4a289 commit 897f263
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/views/shared/_search_subnavbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
<% else %>
<ul class="nav navbar-nav">
<li class="navbar-link">
<%= link_to feedback_path(type: 'connection'), data: {toggle:"collapse", target:"#connection-form"}, class: 'connection-problem' do %>
<%= link_to feedback_path(type: 'connection'),
data: { bs_toggle: "collapse", bs_target: "#connection-form" },
class: 'connection-problem' do %>
Connection problem?
<% end %>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_top_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%= link_to 'Login', new_user_session_path(referrer: request.original_url), class: 'first' %>
<% end %>
<%= link_to "My Account", "https://mylibrary.stanford.edu/" %>
<%= link_to feedback_path, data: {toggle:"collapse", target:"#feedback-form"} do %>
<%= link_to feedback_path, data: { bs_toggle:"collapse", bs_target: "#feedback-form" } do %>
Feedback
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/feedback_forms/_form_fields.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<div class="form-group row">
<div class="offset-sm-3 col-sm-9">
<button type="submit" class="btn btn-primary">Send</button>
<%= link_to "Cancel", :back, class:"cancel-link", data: { toggle: 'collapse', target: target } %>
<%= link_to "Cancel", :back, class:"cancel-link", data: { bs_toggle: 'collapse', bs_target: target } %>
</div>
</div>
</div>
Expand Down

0 comments on commit 897f263

Please sign in to comment.