Fixed random movie
This commit is contained in:
parent
fbad5fde92
commit
b69b987736
|
@ -44,8 +44,8 @@
|
|||
<h2 class="subtitle-index">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieIndex">
|
||||
<div class="cinemapress-random-index"
|
||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||
<div <% if (!category.url) { %>style="display:none"<% } %> class="cinemapress-random-index"
|
||||
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -325,7 +325,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue