Commit 8220ed6ef228ce887a05739eb6a86f826c854c10
1 parent
f6381d48
Exists in
master
and in
11 other branches
proposals_discussion: fix javascript inclusion
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
lib/proposals_discussion_plugin.rb
... | ... | @@ -40,4 +40,8 @@ class ProposalsDiscussionPlugin < Noosfero::Plugin |
40 | 40 | page.kind_of?(ProposalsDiscussionPlugin::Proposal) |
41 | 41 | end |
42 | 42 | |
43 | + def js_files | |
44 | + ['jquery.jscroll.min.js', 'perfect-scrollbar.min.js', 'perfect-scrollbar.with-mousewheel.min.js'] | |
45 | + end | |
46 | + | |
43 | 47 | end | ... | ... |
views/content_viewer/discussion.html.erb
1 | 1 | <%= stylesheet_link_tag 'plugins/proposals_discussion/perfect-scrollbar.min.css' %> |
2 | -<%= javascript_include_tag 'plugins/proposals_discussion/perfect-scrollbar.min.js' %> | |
3 | -<%= javascript_include_tag 'plugins/proposals_discussion/perfect-scrollbar.with-mousewheel.min.js' %> | |
4 | -<%= javascript_include_tag 'plugins/proposals_discussion/jquery.jscroll.min.js' %> | |
5 | 2 | <%= javascript_include_tag 'plugins/proposals_discussion/proposals_list.js' %> |
6 | 3 | |
7 | 4 | <div class="description"> | ... | ... |
views/content_viewer/topic.html.erb