-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$(...).sidebar is not a function #122
Comments
Yes the the selector I am not sure to understand which part of my code you want to see. Do you want me to send the html part? |
This is my javascript code: //= require rails-ujs
//= require turbolinks
//= require jquery
//= require semantic-ui and this is html <div id="ui-sidebar">
<div class="sidebar-item">demo</div>
</div> |
yes I have the same:
//= require jquery
//= require jquery_ujs
//= require semantic-ui
//= require_tree ./channels
//= require_tree .
and
<div class="ui vertical inverted sidebar menu left" id="ui-sidebar">
<% @chatrooms.each do |chatroom| %>
<!-- This link calls the show action inside the chatrooms controller
-->
<%= link_to chatroom, class:"sidebar-item", remote: true do %>
<div class="item">
<%= image_tag chatroom.fb_user.profile_pic, class:"ui avatar
image", alt:"patient picture" %>
<div>
<p><%= chatroom.fb_user.first_name %> <%=
chatroom.fb_user.last_name %></p>
</div>
</div>
<% end %>
<% end %>
</div>
Le mer. 22 nov. 2017 à 11:31, Sean Deng <notifications@github.com> a écrit :
… This is my javascript code:
//= require rails-ujs//= require turbolinks//= require jquery//= require semantic-ui
and this is html
<div id="ui-sidebar">
<div class="sidebar-item">demo</div>
</div>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#122 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXGT79Lp-fia7aZXPwtNOMRHo_EV5QFWks5s4_gVgaJpZM4QnB3U>
.
|
Please paste your layout code, and where the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I've been using gem
semantic-ui-sass
for several months and my sidebar has always toggled perfectly. However, it doesn't work anymore. JS in the console says$(...).sidebar is not a function
. I don't understand is going wrong. Here is my code in my js file:Could you help me?
Thanks
The text was updated successfully, but these errors were encountered: