Changed check category
This commit is contained in:
parent
eb4a498906
commit
dac03a8e30
|
@ -243,7 +243,7 @@
|
|||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"
|
||||
|
|
|
@ -251,7 +251,7 @@
|
|||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"
|
||||
|
|
|
@ -75,7 +75,7 @@ index[type].forEach(function (category) { %>
|
|||
<div style="margin: 0 0 30px 0;color: #fff;font-size: 20px;font-weight: bold;"><%- category.name %></div>
|
||||
|
||||
<% var moreEpisodes = false; %>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="story story_m">
|
||||
<div class="s_name">
|
||||
|
|
|
@ -266,7 +266,7 @@
|
|||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"
|
||||
|
|
|
@ -248,7 +248,7 @@
|
|||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"
|
||||
|
|
|
@ -211,7 +211,7 @@
|
|||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"
|
||||
|
|
|
@ -246,7 +246,7 @@
|
|||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>"
|
||||
|
|
Loading…
Reference in New Issue