Changed check category
This commit is contained in:
parent
9e888d4304
commit
2b90a00b62
|
@ -457,7 +457,7 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix"
|
||||
style="width: 510px;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.splice(7, category.movies.length % 7);
|
||||
category.movies.forEach(function (movie, i) { %>
|
||||
<a href="<%- movie.url %>"
|
||||
|
|
|
@ -460,7 +460,7 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix"
|
||||
style="width: 510px;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.splice(7, category.movies.length % 7);
|
||||
category.movies.forEach(function (movie, i) { %>
|
||||
<a href="<%- movie.url %>"
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
<div class="module_body clear_fix">
|
||||
|
||||
<% var moreEpisodes = false; %>
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="clear_fix clear page_album_row"
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
</div>
|
||||
<div class="wall_posts own">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="page_block">
|
||||
<div class="_post post page_block all own">
|
||||
|
|
|
@ -466,7 +466,7 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix"
|
||||
style="width: 510px;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.splice(7, category.movies.length % 7);
|
||||
category.movies.forEach(function (movie, i) { %>
|
||||
<a href="<%- movie.url %>"
|
||||
|
|
|
@ -460,7 +460,7 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix"
|
||||
style="width: 510px;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.splice(7, category.movies.length % 7);
|
||||
category.movies.forEach(function (movie, i) { %>
|
||||
<a href="<%- movie.url %>"
|
||||
|
|
|
@ -457,7 +457,7 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix"
|
||||
style="width: 510px;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.splice(7, category.movies.length % 7);
|
||||
category.movies.forEach(function (movie, i) { %>
|
||||
<a href="<%- movie.url %>"
|
||||
|
|
|
@ -457,7 +457,7 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix"
|
||||
style="width: 510px;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.splice(7, category.movies.length % 7);
|
||||
category.movies.forEach(function (movie, i) { %>
|
||||
<a href="<%- movie.url %>"
|
||||
|
|
Loading…
Reference in New Issue