diff --git a/app/assets/javascripts/initializers/initScrolling.js b/app/assets/javascripts/initializers/initScrolling.js index 7ef567767..99596668c 100644 --- a/app/assets/javascripts/initializers/initScrolling.js +++ b/app/assets/javascripts/initializers/initScrolling.js @@ -380,7 +380,7 @@ function fetchNextPageIfNearBottom() { fetchNextPodcastPage(indexContainer); }; } else if (indexWhich === 'videos') { - scrollableElem = document.getElementById('video-collection'); + scrollableElem = document.getElementById('main-content'); fetchCallback = function fetch() { fetchNextVideoPage(indexContainer); }; diff --git a/app/views/videos/index.html.erb b/app/views/videos/index.html.erb index ee06d3c3d..07623e960 100644 --- a/app/views/videos/index.html.erb +++ b/app/views/videos/index.html.erb @@ -20,22 +20,25 @@ <% end %>
-
-

<%= community_name %> on Video

-
-
- <% @video_articles.each do |video_article| %> - -
- <%= video_article.video_duration_in_minutes %> -
-

<%= video_article.title %>

-

<%= video_article.user.name %>

-
- <% end %> -
-
-
- loading... -
+ +
+
+

<%= community_name %> on Video

+
+ +
+
+ loading... +
+